一个简单的数据库问题,请教一下
string ls_name,ls_pwd,ls_type
...
if ls_name<>"" then
select password,user_type
into:gs_pwd,:ls_type
from user
where user_id = :ls_name;
...
数据库中有这样一个表: user
字段: user_id
user_name
password
user_type
编译之后出现这个错误:
database 3700||[Sybase][ODBC Driver][Adaptive Server Anywhere]Syntax error or access violation:near 'user' in ...,user_type from[user] where user_id=' '
怎么回事,怎么解决呀?