sql语言,最简单基础

浪子不回头ぞ 提交于 2019-11-27 20:43:09

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

增: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

 

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!