oracle数据库十大SQL语句
操作对象(object) | /*创建对象 table,view,procedure,trigger*/ create object objectName(); /*删除对象*/ drop object objectName;
/*修改对象,*/ alter object objectName; /*增加列*/ alter object objectName add columnName newColumnType; /*删除列*/ alter object objectName drop column columnName; /*修改列*/ alter object objectName modify columnName columnType;
|
操作数据(date) |
/*给表添加数据*/ insert into table values(,,,); /*条件删除表中数据*/ delete from table where name0=''; /*条件修改表数据*/ update table set name1='',naem2='' where name3=''; /*条件查询表数据*/ select name0 from table where name1=''; |