我用的是mysql-5.6.22-winx64版本,在命令行输入下述语句:
mysql> create table db_shop.tb_admin(
-> 'id' int(4) not null default '0',
-> 'name' varchar(25) default null,
-> 'pwd' varchar(50) default null,
-> primary key('id')
-> );
按回车出现下述语句:
error 1064 (42000): 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 ''id'
int(4) not null default '0',
'name' varchar(25) default null,
'pwd' varchar' at line 2
请问各位大侠是什么原因?我执行的语句是照抄书上的原文,我该怎么办?
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号