标签:show 插入 not dex insert key 语句 操作 创建索引
查看索引 : show index from table_name
创建索引:create index index_name on table_name(column_name) 创建唯一索引:create unique index index_name on table_name(column_name) 创建联合索引:create index index_name on table_name(column1_name,column2_name)
删除索引:drop index index_name on table_name
查看创建表语句:show create table table_name
新建表:create table table_name(
id int not null auto_increment, name varchar(50) not null, age int not null, primary key(id)
);
插入语句:insert into table_name(column1_name, column2_name) values (column1_value,column2_value)
清空表中信息:truncate table table_name
查看所有列:show full columns from table_name
标签:show 插入 not dex insert key 语句 操作 创建索引
原文地址:https://www.cnblogs.com/zhwcs/p/9403387.html