哪位高手帮小弟我看下这个SQL错在哪里啊

谁帮我看下这个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超出了吧

哪位高手帮小弟我看下这个SQL错在哪里啊

相关文章:

你感兴趣的文章:

标签云: