asp.net数据库错误问题
一只大头猿 2018-10-03 04:47:54 注册页面把数据写入数据库时出现“System.Data.SqlClient.SqlException”类型的异常在 System.Data.dll 中发生,但未在用户代码中进行处理
其他信息: Incorrect syntax near the keyword 'user'.错误信息,说是出现在user表错误。错误指向ExecuteNonQuery函数
string sql = "insert into user values('"+user+"','"+password+"','"+mail +"','"+phone+"')";这是表插入语句,请问这个错误怎么解决