首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > PB >

syntax error or access violation解决方法

2012-03-24 
syntax error or access violation刚学PB,请大家看看什么问题string is_name,is_pwd,pwd2,is_poweris_name

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是不能做表名的

热点排行