select * from aaa where dd in ('''+xxx+''');
xxx='01,02,03,....'
xxx='01,02,03,....'
解决方案 »
- Delphi中用Canvas画的直线放在button的Onclick事件中画不出来
- 上海地区求购<<delphi 5开发人员指南>>
- 怎样成为一个delphi高手,我发现自己编的东西都是垃圾!很烦!(散分)
- 请问用delphi如何开com组件,请不吝赐教,有源码例程最好。分不够可以再加。
- Ttextclient是什么控件呀。那里有下载?
- 很急!拜托!!
- 求程序源码 百度新闻读取
- 关于dbgrid 字体颜色的问题
- form被关闭的时候会不会触发其中控件的onchange事件?
- 如何修改iframe里面的body
- 如何改变 DBgridEh 3 控件的 滚动条 样式 ?????????????急!!!!!!!!!!!!!
- 请问listview的columns可以改变颜色吗?如何改变?
xxx:='01,02,03'
sql :='select * from aaa where dd in ('+xxx+')';这样执行的时候就会转换成sql='select * from aaa where dd in (01,02,03)';
sql:=select * from aaa where dd in ('''+xxx+''')';
sql:='select * from aaa where dd in ('+xxx+')';
select * from aaa where dd in (xxx);
sql:=sql+''01','02','03',...'
sql:='select * from aaa where dd in ('+xxx+')';