当前位置:数据库 > Oracle >>

oracle 过程变量问题

有一个SQL要放在过程里执行,其中var_c为变量 select count(1) into var_c from table1 where col1='xxx'; select count(1) into 变量1 from 变量2 where col1=变量3 现在想让table的位置和where条件也用变量,这个该怎么做,我查了一下表名用变量要用execute immediate,哪位指点一下,谢谢 但没弄好,
Oracle
MySQL
Access
SQLServer
DB2
Excel
SQLite
SYBASE
Postgres
如果你遇到数据库难题:
请访问www.zzzyk.com 试试
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,