日期:2014-05-16  浏览次数:20846 次

谁帮我看下这个SQL错在哪里啊?
谁帮我看下这个SQL错在哪里啊?
CREATE   TABLE   `rooms`   (     `jid`   varchar(512)   NOT   NULL,     `name`   text   NOT   NULL,     `desc`   text   NOT   NULL,     `topic`   text   NOT   NULL,     `users`   int(11)   NOT   NULL   default   '0 ',     `public`   tinyint(1)   NOT   NULL,     `open`   tinyint(1)   NOT   NULL,     `secret`   text   NOT   NULL,     UNIQUE   KEY   `jid`   (`jid`))   ENGINE=MyISAM   DEFAULT   CHARSET=latin1;
ERROR   1170   (42000):   BLOB/TEXT   column   'jid '   used   in   key   specification   without   a   key   length

------解决方案--------------------
在我这没有错啊

v 5.0
------解决方案--------------------
(0 row(s)affected)
(0 ms taken)

没有错误 ,你 的 版本?

我的版本:
5.1.17-beta-community-nt-debug
------解决方案--------------------
变为主键试试
------解决方案--------------------
512超出了吧