请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

插入数据报错

INSERT IN students VALUE(1, ‘张三’, ‘三哥’, ‘男’, now());

[SQL]INSERT IN students VALUE(1, ‘张三’, ‘三哥’, ‘男’, now());
[Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘IN students VALUE(1, ‘张三’, ‘三哥’, ‘男’, now())’ at line 1

正在回答 回答被采纳积分+3

3回答

提问者 沧海遗珠丶丶 2019-03-15 18:20:54

找到问题的原因了,都是小问题

0 回复 有任何疑惑可以回复我~
提问者 沧海遗珠丶丶 2019-03-15 18:01:21

https://img1.sycdn.imooc.com//szimg/5c8b77690001681313660736.jpg

https://img1.sycdn.imooc.com//szimg/5c8b77bd0001c42b08530335.jpg

运行插入语句,刷新之后,表里面没有变化


0 回复 有任何疑惑可以回复我~
提问者 沧海遗珠丶丶 2019-03-15 17:53:51

[SQL]INSERT INTO `students` VALUE(1, '张三', '三哥', '男', now());

[Err] 1366 - Incorrect string value: '\xE5\xBC\xA0\xE4\xB8\x89' for column 'name' at row 1


现在是这个错误了

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号