谁帮我看下这个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
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
解决方案 »
- 安装完mysql5.5之后找不到配置文件了
- 为什么where中出现了is null还能使用索引?
- 有哪位哥们用scws_parser中文分词插件的?
- 请教: MYSQL下如何使用类似于 id in (...) 这样的选择条件
- 为什么用pg_connect连接不上呢(不是 undefined fuction)
- MYSQL如果不设置登陆密码会不会有被黑的安全性问题?
- 請教:下載了 mysql4.1.0-win32-apache.zip ,解壓後發現沒有setup文件,我以前裝的mysql3.2.3安裝過後的目錄一樣,不知4.1的是如何安裝
- mysql 安装问题
- 如何用IP连接mysql数据库?mysql支持ADO么?
- 遇到的最奇怪的MySQL问题
- 插入mysql 繁体字时,程序报错,急,急
- mysql 怎么实现insert与select 联合使用?请给个例子,谢谢!
(0 ms taken)没有错误 ,你 的 版本?我的版本:
5.1.17-beta-community-nt-debug