sql语言,最简单基础

一、增删改查(对表内数据)

增:insert into table1(field1,field2) values(value1,value2)  
删:delete from table1 where 范围  
改:update table1 set field1=value1 where 范围  
查:select * from table1 where field1 like ’%value1%’

二、创建删除表+对表的列属性修改

创建表
create table tabname(
col1 type1 [not null] [primary key],
col2 type2 [not null],
..)

删除表
drop table tabname

增加一个列
Alter table tabname add column col type

三、创建删除数据库

CREATE DATABASE 数据库名
drop database dbname

猜你喜欢

转载自www.cnblogs.com/Jasper-changing/p/11375720.html