编程论坛's Archiver

刚学会走 发表于 2006-3-22 11:06

托管c++的sql语句

问个托管VC++的, sqlstr=S"select * from T_login where uid=某一textBox and pwd=某一textBox"这个SQL语句怎么写啊谢谢了 <BR>

冰镇柠檬汁儿 发表于 2006-3-22 11:18

sqlstr=S"select * from T_login where uid='"+ textBox1 +"' and pwd='"+ textBox2 +"'";

ヤ順祺冄繎ヤ 发表于 2006-3-22 17:31

<DIV class=quote><B>以下是引用<U>houjuanjie</U>在2006-3-22 11:18:00的发言:</B><BR>sqlstr=S"select * from T_login where uid='"+ textBox1 +"' and pwd='"+ textBox2 +"'";</DIV>
<P>呵呵...[em10]</P>

刚学会走 发表于 2006-4-3 12:37

sqlstr=S"select * from T_login where uid='"+ textBox1 +"' and pwd='"+ textBox2 +"'"<BR>这样可以么...不行吧...uid='"+ textBox1 +"'这两个会相等么?pwd='"+ textBox2 +"'这能行么

冰镇柠檬汁儿 发表于 2006-4-3 13:39

你果然是<STRONG><FONT color=#000066>刚学会走。[em03]</FONT></STRONG>

页: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.