动态SQl中用using传递参数 下边这种写法对吗?
execute immediate 'select * from 表 where 字段1 = :1 and 字段2 = :1'
using '1';
还是说 必须写成:
execute immediate 'select * from 表 where 字段1 = :1 and 字段2 = :2'
using '1','1'
我的动态SQL里边 很多地方都用到了同一个参数,用一次 就得在using后边加一个吗?Oracle动态SQLusing
execute immediate 'select * from 表 where 字段1 = :1 and 字段2 = :1'
using '1';
还是说 必须写成:
execute immediate 'select * from 表 where 字段1 = :1 and 字段2 = :2'
using '1','1'
我的动态SQL里边 很多地方都用到了同一个参数,用一次 就得在using后边加一个吗?Oracle动态SQLusing
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货