Oracle数据库操作语言(DML)

时间:2022-06-11 18:44:57
--insert添加语句
insert into table_name(column_name,column_name,...)
 values (data1,data2,...);
 
 --通过表添加数据
 insert into table_name(column_name,column_name,...)
 select column_name,column_name,... from table_name;
 
 --创建表添加数据
 create table table_name
 as select column_name,column_name,... from table_name;
 
 
 --Update语句
 update table_name set column_name=data1,column_name=data2,...
 where condition;
 condition:查询条件。
 
 
 --delete删除数据
 delete from table_name Where condition;