您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息
免费发信息
三六零分类信息网 > 绵阳分类信息网,免费分类信息发布

thinkphp新建数据表

2024/5/22 12:59:52发布39次查看
因为tp没有新建表的一个功能 相信很多人使用tp新建表的时候都是原生的 但是原生会出现一个问题 (报错) 然而报错还会新建成功..... 下面有一个新建表的功能带给大家
$sql = create table `system_novel_one` (
`id` int(11) not null auto_increment,
`name` char(200) default null comment '章节名称',
`contents` text comment '章节文字',
`next` int(11) default null comment '下一章地址',
`pid` int(11) default null comment '小说名称',
`novel_url` char(50) default null comment '小说章节地址',
primary key (`id`)
) engine=innodb auto_increment=1 default charset=utf8mb4;
sql;
dump(m()->execute($sql));
绵阳分类信息网,免费分类信息发布

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录