创建和插入数据-php快速入门系列教程
创表和插入主讲人: 幻令
博客:https://blog.icodef.com
论坛:https://www.eruyi.cn
目录:https://www.eruyi.cn/thread-1412-1-1.html
表
数据都存在表中
创建表(create)
虽然更多是使用工具创建表,但也还是了解一下sql的创建语句
create table `table`(`field1` int(10),`field2`,varchar(64));
主键
每一行数据的唯一标识,不允许重复
自增
字段必须是索引,而且必须是整数类型
插入数据(insert)
insert into `table`(`field1`,`field2`) values('data1','data2');
insert into `table` values('data1','data2'),('data1','data2');
**** Hidden Message *****
谢谢分享 路过看看 谢谢分享 嘻嘻嘻 fghdfghdgfhdfgh kkkkkfdf 6666666666666666 开发环境配置-php快速入门系列教程
学习一下!