标签:varchar 技术 课程 mys 注册机 hit 允许 学习 反引号
CREATE TABLE table_name (column_name column_type);
create table if not exists `table_name`( `column_id` int unsigned auto_increment(自动递增), `column_name` varchar(100) not null, //字段名 数据类型(长度) 不允许空值 `column_age` int(100) not null, primary key (`column_id`) //设置主键 )engine=innoDB default charset=utf8; //设置引擎、编码类型
insert into table_name (field1,field2...fieldN) values (value1,value2...valueN)
DROP TABLE table_name ;
DELETE FROM table_name(表名) [WHERE Clause]
UPDATE table_name SET field1=new-value1, field2=new-value2 [WHERE Clause]
select * from table_naem(表名)
select column_name(字段 名) form table_name(表名)
select column_name,column_name(字段名之间用逗号‘,‘隔开) from table_name
select field1,field2...fieldN from table_name(表名) where condition1 [and/or] condition2(条件)
标签:varchar 技术 课程 mys 注册机 hit 允许 学习 反引号
原文地址:https://www.cnblogs.com/zqian-31/p/11148311.html