Sql语句字符串中含有变量的写法_常用sql语句书写技巧
Sql语句字符串中含有变量的写法由刀豆文库小编整理,希望给你工作、学习、生活带来方便,猜你可能喜欢“常用sql语句书写技巧”。
Sql语句字符串中含有变量的写法:
Step 1:书写sql语句实例
Select * from admin where uname=’pa’ and upwd=’123456’
Step2:将常量换成变量,并在两端加”+”
Select * from admin where uname=’+txtuname.text+’ and upwd=’+txtpwd.text+’
Step3:将被+隔开的字符串两端加上””
“Select * from admin where uname=’”+txtuname.text+”’ and upwd=’”+txtpwd.text+”’”
《Sql语句字符串中含有变量的写法.docx》
将本文的Word文档下载,方便收藏和打印
推荐度:
点击下载文档
[其他范文]热门文章