还有人在吗?帮忙看下ASP SQL的一个语法错误
username=request.form( "txtname ")
sql= "select * from user where name= ' "&username& " ' "
这个怎么会提示sql语句错误?哪错了?
我试着写成这样也不行sql= "select * from user where name= "&username
错误类型:
Microsoft JET Database Engine (0x80040E14)
FROM 子句语法错误。
/regprocess.asp, 第 31 行
------解决方案--------------------sql= "select * from [user] where name= ' "&username& " ' "