首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > SQL Server >

sql语句有关问题?

2012-02-10 
sql语句问题???selectnamefromuserwhereid?andpassword?提示关键字user附近有语法错误! [解决办法]USER

sql语句问题???
select   name   from   user   where   id=?   and   password=?

提示   关键字user附近有语法错误!


[解决办法]
USER不能做为表名,你将表改为其他名称!
[解决办法]
select name from [user] where id=? and password=?
[解决办法]
select name from [user] where id=? and password=?



[解决办法]
select [name] from [user] where id=? and password=?

热点排行