RT
解决方案 »
- 如何计算某时间段内有几个星期几?
- 大家把qq或者msn留下,方便联系哦.(散分)
- 请教动态获取任意属性的所有值的方法?
- 如何象金山快译那象在word中的工具栏中加入它自己的按钮。。。。
- --------------- 关于报表打印的问题 ------------------打印时,我想让一张纸只打印一条记录,该怎么做呀???
- 如何用ADOconnection连接在edit中指定的SQL服务器和数据库阿,急
- 程序运行时的一个错误
- 请教连接数据库问题
- 怎么把BDE的数据库程序转变成ADO的程序?请帮帮我!(一定给分!)
- Help 中有好多See Also,那位E问好的可以教教我是什么意思吗?
- message的问题
- 问题
+ edit1.text
+ ''''这样是不是清楚一点??第一行第二个单引表转义
-> '' 转义一个'
这样如果Edit1.Text 的值为:Tom,则SQL字符串为:
select * from student where name ='Tom'
'select * from student where name='''
+ edit1.text
+ ''''就是select * from student where name='Abc'
等同于
'select * from student where name="'
+ edit1.text
+ '"'
->select * from student where name="Abc"
假设edit1.text = 'aaaa',那么就是select * from student where name='aaaa'(因为字符串要用单号)