如Sql语句:
select * from a join b on a.id=b.id
where a.date>:Date and b.Date>:Date
两个参数重名,用paramByName赋值只能给其中的一个赋值,请问有什么方法可以赋一值。
因为程序中的参数个数是不一定的,所以不能通过索引+名字的方式遍历参数。
...全文
13213打赏收藏
tadoQuery同名参数赋值问题
如Sql语句: select * from a join b on a.id=b.id where a.date>:Date and b.Date>:Date 两个参数重名,用paramByName赋值只能给其中的一个赋值,请问有什么方法可以赋一值。 因为程序中的参数个数是不一定的,所以不能通过索引+名字的方式遍历参数。