原文:oracle 数据库 , 表中字段顺序修改

.首先需要sys或者system权限操作 .查询需要更改的表的ID select object id from all objects where owner 用户名 and object name tableName 注:表名需要大写 .通过ID查询出该表所有字段的顺序 select obj , col , name from sys.col where obj 表ID order by co ...

2018-09-12 17:41 0 1485 推荐指数:

查看详情

oracle修改某个字段顺序

有时候会发现某个的列顺序不理想,想修改 -1查询, select * from AIRWAY_TYPE t --2 查询用户和名,找到obj#,select object_id from all_objects where owner='NAIP2017_05 ...

Wed Apr 25 02:30:00 CST 2018 0 1040
Oracle数据库修改结构

我们现在的结构是这样的: create table test( id varchar2(50) not null,     registTime varchar2(80) not null); 1.在test表里增加一个字段name ...

Thu Jun 20 23:36:00 CST 2019 0 1154
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM