Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: dropping a column
Ceri Moran wrote:
> I have two columns in the middle of a table, I wish to move to the
> end, I cant seem to reorder using the Navigator or SQLPLUS.
Ceri: In relational theory, the order of columns in a table is insignificant. If order is significant, it is incorrect. You can retrieve the columns in any order as needed.
> Please could you advise me the correct SQL for dropping a non-key
> column from a table?
I wish I had time to write a treatise on this. Just creating a temporary table from the current table, dropping the current table, then renaming the temporary table is a dangerous understatement in a complex production environment. Other things you need to be aware of include (no guarantees this is the complete list):
With the power of Oracle comes complexity. Knowledge and Preparation are the key to success.
+----------------------------------------------------- | Dan Townsend, Supervising Database Architect| EBMUD Enterprise Object Designer
+-----------------------------------------------------Received on Thu Jul 10 1997 - 00:00:00 CDT
![]() |
![]() |