没有必要更改啊!你在select时调整顺序就可以了。
如果你实在要调整,可以参考以下代码。
设有一表tb1有字段id,age,name,现在要调整为id,name,age
create table tmp select id,name,age from tb1;
drop table tb1;
alter table tmp rename tb1;
如果你实在要调整,可以参考以下代码。
设有一表tb1有字段id,age,name,现在要调整为id,name,age
create table tmp select id,name,age from tb1;
drop table tb1;
alter table tmp rename tb1;
改变的只能是在视图上看到的相对位置!即调整!
select a, b, c
from tab