这是什么原因啊,没有找出错来啊(数据库用的是mysql)
16lz
2021-01-22
createtablet_CounsellorInfo
(
SIDintnotnullauto_increment,
Cou_accountvarchar(10),
Cou_passwordvarchar(8),
Cou_stateint,
Cou_rolevarchar(6),
Cou_namevarchar(6),
primarykey(SID)
)
insertintot_CounsellorInfo(Cou_account,Cou_password,Cou_state,Cou_role,Cou_name)values('0000000003','66666666',1,'辅导员','王梦')
ERROR1064(42000):YouhaveanerrorinyourSQLsyntax;checkthemanualthat
correspondstoyourMySQLserverversionfortherightsyntaxtousenear'inser
tintot_CounsellorInfo(Cou_account,Cou_password,Cou_state,Cou_role,Cou_na'at
line11
这是什么原因啊,没有找出错来啊(数据库用的是mysql)
没有问题的,你重新再试试。我在我的机子上用你这段是能正常跑起来的。
我的mysql版本是5.0.41
(
SIDintnotnullauto_increment,
Cou_accountvarchar(10),
Cou_passwordvarchar(8),
Cou_stateint,
Cou_rolevarchar(6),
Cou_namevarchar(6),
primarykey(SID)
)
insertintot_CounsellorInfo(Cou_account,Cou_password,Cou_state,Cou_role,Cou_name)values('0000000003','66666666',1,'辅导员','王梦')
ERROR1064(42000):YouhaveanerrorinyourSQLsyntax;checkthemanualthat
correspondstoyourMySQLserverversionfortherightsyntaxtousenear'inser
tintot_CounsellorInfo(Cou_account,Cou_password,Cou_state,Cou_role,Cou_na'at
line11
这是什么原因啊,没有找出错来啊(数据库用的是mysql)
4 个解决方案
#1
没有问题的,你重新再试试。我在我的机子上用你这段是能正常跑起来的。
我的mysql版本是5.0.41