注册 登录
编程论坛 VC.NET论坛

托管c++的sql语句

刚学会走 发布于 2006-03-22 11:06, 1325 次点击
问个托管VC++的, sqlstr=S"select * from T_login where uid=某一textBox and pwd=某一textBox"这个SQL语句怎么写啊谢谢了
4 回复
#2
冰镇柠檬汁儿2006-03-22 11:18
sqlstr=S"select * from T_login where uid='"+ textBox1 +"' and pwd='"+ textBox2 +"'";
#3
ヤ順祺冄繎ヤ2006-03-22 17:31
以下是引用houjuanjie在2006-3-22 11:18:00的发言:
sqlstr=S"select * from T_login where uid='"+ textBox1 +"' and pwd='"+ textBox2 +"'";

呵呵...

#4
刚学会走2006-04-03 12:37
sqlstr=S"select * from T_login where uid='"+ textBox1 +"' and pwd='"+ textBox2 +"'"
这样可以么...不行吧...uid='"+ textBox1 +"'这两个会相等么?pwd='"+ textBox2 +"'这能行么
#5
冰镇柠檬汁儿2006-04-03 13:39
你果然是刚学会走。
1