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)
请问这是为什么,谢谢!

解决方案 »

  1.   

    同意楼上的看法,这是很应该重视的习惯问题
    反引号就是左上角1旁边的`,而单引号是' ,还是有形状区别的
    另外,其实在mysql中可以不加引号的
      

  2.   

    mysqldump可以带选项-Q或者--quote-names,指定分隔符相信后续版本的mysql会提供在mysql命令行里设置此项功能。
      

  3.   

    http://hiphotos.baidu.com/liqianann/pic/item/e695153063997b8ba8018e1a.jpg这是为什么呢?在配置web.xml时候碰到的问题。