D doby_li Unregistered / Unconfirmed GUEST, unregistred user! 2007-04-23 #1 如现在我想将表名:usertab中的某个字段:username的名字改为user_name, 类型都为:varchar2。 请问这条sql 语句应如何写呀?
沉 沉香屑 Unregistered / Unconfirmed GUEST, unregistred user! 2007-04-23 #2 SQL> desc test; Name Type Nullable Default Comments ---- ------ -------- ------- -------- ID NUMBER Y AA NUMBER Y SQL> alter table test rename column aa to a; Table altered SQL> desc test; Name Type Nullable Default Comments ---- ------ -------- ------- -------- ID NUMBER Y A NUMBER Y
SQL> desc test; Name Type Nullable Default Comments ---- ------ -------- ------- -------- ID NUMBER Y AA NUMBER Y SQL> alter table test rename column aa to a; Table altered SQL> desc test; Name Type Nullable Default Comments ---- ------ -------- ------- -------- ID NUMBER Y A NUMBER Y
Q qdlover Unregistered / Unconfirmed GUEST, unregistred user! 2007-04-23 #3 自己用enterprise操作一下看看sql就知道了 alert table usertab rename column "username" to user_name
D doby_li Unregistered / Unconfirmed GUEST, unregistred user! 2007-04-23 #4 是不是我的是oracle 8.05版的,这些修改列名,删除列的命令都不支持呀?