gpt4 book ai didi

php - mysql - 创建更长的内容表

转载 作者:行者123 更新时间:2023-11-29 05:23:11 25 4
gpt4 key购买 nike

我想为页面内容创建一个大存储空间。这是我尝试过的:

CREATE TABLE `pages` (
`id` int(4) NOT NULL auto_increment,
`name` varchar(65) NOT NULL default '',
`content` varchar(65) NOT NULL default '',
`author` MEDIUMBLOB() NOT NULL default '',
PRIMARY KEY (`id`)
) TYPE=MyISAM AUTO_INCREMENT=2 ;
--
-- Dumping data for table `pages`
--
INSERT INTO `members` VALUES (1, 'test', 'TEST_TEST_TEST');

我得到错误:

#1064 - 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 '() NOT NULL default '',
PRIMARY KEY (`id`)
) TYPE=MyISAM AUTO_INCREMENT=2' at line 5

有什么建议吗?

最佳答案

试试这个:

CREATE TABLE `pages` (
`id` INT NOT NULL AUTO_INCREMENT,
`name` VARCHAR(65) NOT NULL,
`content` LONGTEXT NOT NULL,
`author` MEDIUMBLOB NOT NULL,
PRIMARY KEY (`id`)
)
ENGINE=MyISAM;

关于php - mysql - 创建更长的内容表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23195977/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com