Questions tagged «create-table»





28
MySQL:错误代码:1118行大小太大(> 8126)。将某些列更改为TEXT或BLOB
我想创建一个包含325列的表: CREATE TABLE NAMESCHEMA.NAMETABLE ( ROW_ID TEXT NOT NULL , //this is the primary key 324 column of these types: CHAR(1), DATE, DECIMAL(10,0), DECIMAL(10,7), TEXT, LONG, ) ROW_FORMAT=COMPRESSED; 我用TEXT替换了所有VARCHAR,并在MySQL的my.ini文件中添加了梭子鱼,这是添加的属性: innodb_file_per_table=1 innodb_file_format=Barracuda innodb_file_format_check = ON 但是我仍然有这个错误: Error Code: 1118 Row size too large (> 8126). Changing some columns to TEXT or …

4
在PostgreSQL中创建表
我不明白此查询出了什么问题?查询工具不想在PostgreSQL中创建表。 CREATE TABLE article ( article_id bigint(20) NOT NULL auto_increment, article_name varchar(20) NOT NULL, article_desc text NOT NULL, date_added datetime default NULL, PRIMARY KEY (article_id) );
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.