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 & ");"
posted @ 2014-11-26 19:21  xiaoxiaojing  阅读(146)  评论(0编辑  收藏  举报