C/C++教程

oracle调整列顺序

本文主要是介绍oracle调整列顺序,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

select *
from all_objects
where 1=1
and owner = 'owner'
and object_name = 'table_name'; --172600

select obj#, col#, name
from sys.col$
where obj# = '172600' order by col#


update sys.col$ set col#=1 where obj#=172600 and name='col_name';
update sys.col$ set col#=2 where obj#=172600 and name='col_name';
update sys.col$ set col#=3 where obj#=172600 and name='col_name';
update sys.col$ set col#=4 where obj#=172600 and name='col_name';
update sys.col$ set col#=5 where obj#=172600 and name='col_name';
update sys.col$ set col#=6 where obj#=172600 name='col_name';
commit;

这篇关于oracle调整列顺序的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!