Oracle 基本操作汇总

1、删除表的一列属性:  alter table user drop column email;

2、创建序列:create sequence scott.seq_user minvalue 1 nomaxvalue start with 1 increment by 1 nocycle cache 10;

3、批处理登录并执行select.sql中的语句:sqlplus scott/tiger@tlxdb @ c:/select.sql ;

     eg:

    批处理内容:

    

    --             登录oracle               @:执行sql脚本  /:结束执行;
     sqlplus odata/asdefg@tlxdb @ c:\select.sql
     /   --这个斜线不可少;
 

   select.sql内容:select * from sys_acquisition_parameters;

http://lehsyh.iteye.com/blog/473320

1、删除表的一列属性:  alter table user drop column email;

2、创建序列:create sequence scott.seq_user minvalue 1 nomaxvalue start with 1 increment by 1 nocycle cache 10;

3、批处理登录并执行select.sql中的语句:sqlplus scott/tiger@tlxdb @ c:/select.sql ;

     eg:

    批处理内容:

    

    --             登录oracle               @:执行sql脚本  /:结束执行;
     sqlplus odata/asdefg@tlxdb @ c:\select.sql
     /   --这个斜线不可少;
 

   select.sql内容:select * from sys_acquisition_parameters;

http://lehsyh.iteye.com/blog/473320

猜你喜欢

转载自gaoyu.iteye.com/blog/1562725