读书人

各位大侠

发布时间: 2012-05-09 12:13:59 作者: rapoo

求助各位大侠
int UserCount
string User,PassWord
User=sle_user.text
PassWord=sle_pwd.text

select count(*)
into :UserCount
from xt.hd_sys_user
where User_Name=User
using sqlca;

st_test.text=string(UserCount)

if UserCount=0 then
MessageBox("提示","无此用户!")
end if

数据连接一切正常
但是无论用户名输什么
count都是0
为什么

[解决办法]

SQL code
select count(*)   into :UserCountfrom xt.hd_sys_user   where User_Name=[color=#FF0000]:User[/color]using sqlca; 

读书人网 >PB

热点推荐