当前位置: 代码迷 >> PB >> syntax error or access violation解决方法
  详细解决方案

syntax error or access violation解决方法

热度:26   发布时间:2016-04-29 08:51:17.0
syntax error or access violation
刚学PB,请大家看看什么问题
string is_name,is_pwd,pwd2,is_power
is_name=sle_1.text
is_pwd=sle_2.text

if is_name="" then 
messagebox("","请选择用户名!")
sle_1.text=""
sle_1.setfocus()
else 
  if is_pwd="" then 
messagebox("","请输入密码!")
sle_2.text=""
sle_2.setfocus()
  else
select pwd into :pwd2 from user where id=:is_name;
 
if pwd2=is_pwd then

open(dw_main)
close(parent)

else
messagebox("","密码错误!")
sle_2.text=""
sle_2.setfocus()
 end if
end if
end if



提示错误:syntax error or access violation:near 'user' from [user] where id=''

------解决方案--------------------
syntax error or access violation
语法错误或者访问冲突,看你数据库的表,user是不能做表名的
  相关解决方案