create database if not exists 'javaweb';
USE 'javaweb';
drop table if exists 'javaweb'. 'notice';
CREATE TABLE 'notice' (
'id' int(11) NOT NULL auto_increment,
'title' varchar(300) NOT NULL,
'content' test,
PRIMARY KEY('id')
)Error Code : 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 ''notice' (
'id' int(11) NOT NULL auto_increment,
'title' varchar(300) NOT NU' at line 1
(2924 ms taken)
请问这是为什么,谢谢!
USE 'javaweb';
drop table if exists 'javaweb'. 'notice';
CREATE TABLE 'notice' (
'id' int(11) NOT NULL auto_increment,
'title' varchar(300) NOT NULL,
'content' test,
PRIMARY KEY('id')
)Error Code : 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 ''notice' (
'id' int(11) NOT NULL auto_increment,
'title' varchar(300) NOT NU' at line 1
(2924 ms taken)
请问这是为什么,谢谢!
解决方案 »
- cluster数据节点不能启动的问题
- asp.net保存中文到mysql乱码
- mysql 唯一索引和普通索引 BUG
- 误删info.frm文件后,如何删除重建info表!
- 某一字段前统一加00,这个更新查询怎么在mysql 中实现?
- vista home basic安装mysql5到start service是出错!!!
- 谁能帮助写一个mysql全角转半角的函数?附已经写好的MSSQL的函数
- 关于用mysql存储变量的问题
- 我只是想知道 Player表里 serverid=0 的数据是否至少有一条, 怎样写sql 效率高
- MYSQL CPU达90%之多,如何去查看资源的占用情况?
- 求一求合的sql
- 請幫忙!delphi連結MySql提示“DBX Error: Invalid Precision.”
反引号就是左上角1旁边的`,而单引号是' ,还是有形状区别的
另外,其实在mysql中可以不加引号的