sybase存储过程中如何使用动态sql?

请教各位高手:
“把一些sql语句片断(如表名,字段名,where条件等)作为字段放在数据表中,
在一个存储过程中,取出这些字段,并组成sql语句执行,
应如何实现?

运行环境:sybase 12。0
由于某些限制,只能在存储过程中实现。
先谢谢了!
---------------------------------------------------------------

study
---------------------------------------------------------------

只是12.0以上版本支持这样的写法。
12.0以下11.5以上,用remote_sql这个系统过程模拟实现
---------------------------------------------------------------

学习
---------------------------------------------------------------

this method only can be used in ase12 or more

Published At
Categories with 数据库类
Tagged with
comments powered by Disqus