create table table1(id int,times datetime default now())
返回一个错误

解决方案 »

  1.   

    CREATE TABLE `table1` (
      `NodeIDs` int(4) NOT NULL default '0',
      `CreateTime` datetime NOT NULL default NOW()
    ) TYPE=MyISAM///
    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 'NOW() ) TYPE=MyISAM' at line 1
      

  2.   

    呵呵!不能这样用的!
    不要再建表的时候用!放在update或者insert语句中!
      

  3.   

    没听明白,举个例子吗!~~lumberjake(伐木工) 老兄,谢谢了!
      

  4.   

    http://www.csdn.net/Develop/Read_Article.asp?Id=15687
      

  5.   

    http://www.csdn.net/Develop/Read_Article.asp?Id=15687:)
    就是这里讲的了,
    如果你下载了我翻译的 MySQL 参考手册,
    你会发现里面讲得更详细一些