PB中的Sql语句
<P>各位大侠,我用PB连上Oracle数据库后怎么写SQL语句啊<BR>string name,password<BR>select username,userpwd into :name,:password from user_admin<BR> where username=:sle_username.text and userpwd=:sle_pwd.text;<BR>这样没有查询结果<BR>应该怎么写啊</P> <P>string name,password<BR>select username,userpwd into :name,:password from user_admin<BR> where username=:sle_username.text and userpwd=:sle_pwd.text;<BR>是把 username,userpwd 插入到 name,password <BR>用messagebox('name',name)<BR> messagebox(password ,password )show一下,<BR>看有沒有數據。有的話說明有查出數據。</P> <P>没有数据的,我也是这样输出一下的但是没有[em06]</P> string name,password<BR>string ls_user,ls_pwd<BR>ls_user=sle_username.text<BR>ls_pwd=sle_pwd.text<BR>select username,userpwd into :name,:password from user_admin<BR> where username=:ls_user and userpwd=:ls_pwd;<BR><BR>看`要没`数据````<BR> <P>同意上述的,select username,userpwd into :name,:password from user_admin<BR> where username=:ls_user and userpwd=:ls_pwd;</P>页:
[1]
