1创建数据库 create database database-name
2删除数据库 drop database dbname
3创建表 create table table-name (id number, name varchar, sex varchar, age number)
4删除表 drop table table-name
5查找 select name from table-name where age<50 //比较运算符<,<=,>,>=,=,<> 逻辑运算符and,or,not
age between 30 and 50 //between 判断表达式的值是否在某范围内
select * from table-name //*表示所有属性
select all name from table-name //all保留重复元组
select distinct name from table-name //distinct 去掉重复元组或使用unique
select * from table-name where name like "张_"//like 找出满足给定匹配条件的字符串 _匹配任意单个字符 %匹配零个或多个字符
6修改列表 alter table table-name add location char[30] //添加新列
drop location //删除列
7插入数据 insert into table-name (name, age) values (zhang,20)