编程论坛's Archiver

create_xc 发表于 2007-5-31 11:00

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>

路過 发表于 2007-5-31 12:46

<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>

create_xc 发表于 2007-5-31 16:45

<P>没有数据的,我也是这样输出一下的但是没有[em06]</P>

fyh 发表于 2007-5-31 22:28

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>

hyw4065 发表于 2007-6-1 11:27

<P>同意上述的,select username,userpwd into :name,:password from user_admin<BR>   where username=:ls_user and userpwd=:ls_pwd;</P>


页: [1]

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