编程中国 | 业界新闻 | 技术文章 | 视频教程 | 下载频道 | 程序源码 | 个人空间 | 编程论坛  
 
全能 ASP / PHP / ASP.NET 主机,支持月付专业 MSSQL 数据库空间,支持月付专业 MySQL 数据库空间,支持月付学习型 ASP/PHP/ASP.NET 主机 30元/年
发新话题
打印

PB中的Sql语句

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;
这样没有查询结果
应该怎么写啊

TOP

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一下,
看有沒有數據。有的話說明有查出數據。

TOP

没有数据的,我也是这样输出一下的但是没有

TOP

string name,password
string ls_user,ls_pwd
ls_user=sle_username.text
ls_pwd=sle_pwd.text
select username,userpwd into :name,:password from user_admin
where username=:ls_user and userpwd=:ls_pwd;

看`要没`数据````

TOP

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

在学习中工作,在工作中学习,无论工作学习都会快乐积极的面队!

TOP

发新话题