-- 并且insert into teacher(列名) values(列所对应的值);--->要一一对应
insert into teacher (id,name,age,description) values(5,'tianqi',36,'我是田七');
insert into teacher (id, name, age) values(6,'赵八', 34);
--insert into teacher(id,name,description) values(7, '王九', '我是王九');
insert into teacher (name,>
2.通过sql进行删除数据
-- 在删除的过程中,尽量要使用唯一键进行删除,或者使用主键进行删除
delete from teacher where name='hahaha';
delete from teacher where>
3.通过sql语句修改一条数据
-- modify/update
-- modify在oracle中适用于列的类型修改,也就是对表的修改进行操作
-- update关键字在oracle中适用于对数据的修改
-- 使用update关键字修改数据时,一定要用唯一键或者主键进行修改
-- 在修改数据时,如果修改多个数据,中间用逗号隔开,字符串带上单引号
update teacher set>
update teacher set age=29 where>
--where要讲 in, =, <, >, between and, !=(<>), >=, <=, or, is null, is not null, not in, like "_L%", like "%_a%" escape 'a'
4.通过where关键字进行过滤查询
=关键符号
select * from teacher where> 大于和小于
select * from teacher where>
select * from teacher where> 大于等于和小于等于
select * from teacher where>
select * from teacher where> 实现区间(范围)查询
select * from teacher where> between and 是包含两边的极限数据(闭区间)
select * from teacher where>
!=(不等于)
select * from teacher where>
select * from teacher where> or关键字(或者)
select * from teacher where> and关键字(并且)
select * from teacher where> in关键字(主要的作用:批量操作)
select * from teacher where>
is null过滤出来所有为null的数据
select * from teacher where description is null;
is not null过滤出来所有不为null的数据
select * from teacher where description is not null;
not in(过滤出不在范围内的所有数据)
select>
select * from teacher where>
select * from teacher where>
select * from teacher where name not in('zhangsan', 'lisi', 'wangwu');