1,更改表名称: alter table student rename column student to student_name;
2,在表中插入新的数据,使用语法insert: insert into stdent (ID, STUDENT, TEACHER_ID)values (6, 'xiaosun', '5');
3,修改字段名称: alter table teacher rename column student_name to teacher_name;
4,在表中增加一个字段:alter table STUDENT add (age varchar2(30) default 3 not null);表名是STUDENT
5,建表语句:CREATE TABLE t_book (
id varchar(20) CONSTRAINT PK_DEPT PRIMARY KEY,
bookName varchar(20) DEFAULT '',
price decimal(6,2) DEFAULT '',
author varchar(20) DEFAULT '',
bookTypeId varchar(20) DEFAULT ''
)
6,SQL模糊查询:SELECT * FROM t_s_type WHERE typename LIKE '%中国%'