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

一句sql看有什么东东!

2012-04-11 
一句sql看有什么错误!!!sqlInsert into users(username,password,status)VALUES(+m_user+,+m_pass

一句sql看有什么错误!!!
sql="Insert into users(username,password,status)VALUES('"+m_user+"','"+m_pass+"','"+m_status+"')";

[解决办法]
2. 调试中看一下 sql 的内容是什么?

4. 你的users 表中status 的字段类型是什么?
[解决办法]
password 是关键子 所有字段和对象名都用[] 括起来

热点排行