调整oracle表中字段显示顺序
2018年05月11日 11:51:48 just_for_that_moment 阅读数:223
版权声明:如需转载,请标明出处。 https://blog.csdn.net/just_for_that_moment/article/details/80279483
1、查询出指定用户下的指定表的object_id
select object_id from all_objects where owner='test' and object_name='表名'
2、根据object_id查询出表字段实际的顺序
select obj#,col#,name from sys.col$ where obj#=79119 ;
3、通过update更改字段的实际顺序。
update sys.col$ set col#=7 where obj#=79119 and name='字段名'