=======================批量删除,只留前十条数据. delete from THIRD_PARTY_MERCHANT a where a.rowid in ( select rowid from THIRD_PARTY_MERCHANT minus select rowid from THIRD_PARTY_MERCHANT where rownum <10)…
--创建表空间 create tablespace waterboss datafile 'd:\waterboss.dbf' size 100m autoextend on next 10m --创建用户 create user wateruser identified default tablespace waterboss --给用户赋予dba权限 grant dba to wateruser create table t_owners ( id number primary key, n…
1.创建table create table test01( id int not null primary key, name ) not null, gender ) not null, age int not null, address ) default ‘地址不详’ not null, regdata date ); 约束 非空约束 not null 主键约束 primary key 外键约束 唯一约束 unique 检查约束 check 联合主键 constraint pk_id_u…