首页 > 代码库 > ADO出现的错误记录

ADO出现的错误记录

Unknown column ‘a‘ in ‘field list‘

出错原因:sql语句没有写对

在使用ASP连接Mysql数据库时,获取的字段变量应该写作如下格式:
remark = "‘" & Request.QueryString("remark") & "‘"
sql语句写为:
sql="insert into category (cid_n,category_type,remark) values (" & cid & "," & categoryType & "," & remark & ");"

ADO出现的错误记录