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