首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

Oracle 基本操作集锦

2012-08-15 
Oracle 基本操作汇总1、删除表的一列属性:? alter table?user drop column email2、创建序列:create sequen

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

热点排行