dbTalk Databases Forums  

How to re-order fields in table?

comp.databases.postgresql comp.databases.postgresql


Discuss How to re-order fields in table? in the comp.databases.postgresql forum.



Reply
 
Thread Tools Display Modes
  #61  
Old   
Marco Mariani
 
Posts: n/a

Default Re: How to re-order fields in table? - 03-28-2008 , 03:34 AM






EricF wrote:

Quote:
You can do this with SQL Manager. There is a "Lite" version that is a free
download.
Another way, if you seldom do that (*) and you can dump and restore the DB:

pg_dump -d --attribute-inserts

creates a dump with INSERT INTO (col1, col2...)


Then, you manually change the column order in the CREATE TABLE
statements, and restore the db.



(*) no, I dont' believe too much in emergent db design :-)


Reply With Quote
  #62  
Old   
Marco Mariani
 
Posts: n/a

Default Re: How to re-order fields in table? - 03-28-2008 , 03:34 AM






EricF wrote:

Quote:
You can do this with SQL Manager. There is a "Lite" version that is a free
download.
Another way, if you seldom do that (*) and you can dump and restore the DB:

pg_dump -d --attribute-inserts

creates a dump with INSERT INTO (col1, col2...)


Then, you manually change the column order in the CREATE TABLE
statements, and restore the db.



(*) no, I dont' believe too much in emergent db design :-)


Reply With Quote
  #63  
Old   
Marco Mariani
 
Posts: n/a

Default Re: How to re-order fields in table? - 03-28-2008 , 03:34 AM



EricF wrote:

Quote:
You can do this with SQL Manager. There is a "Lite" version that is a free
download.
Another way, if you seldom do that (*) and you can dump and restore the DB:

pg_dump -d --attribute-inserts

creates a dump with INSERT INTO (col1, col2...)


Then, you manually change the column order in the CREATE TABLE
statements, and restore the db.



(*) no, I dont' believe too much in emergent db design :-)


Reply With Quote
  #64  
Old   
Marco Mariani
 
Posts: n/a

Default Re: How to re-order fields in table? - 03-28-2008 , 03:34 AM



EricF wrote:

Quote:
You can do this with SQL Manager. There is a "Lite" version that is a free
download.
Another way, if you seldom do that (*) and you can dump and restore the DB:

pg_dump -d --attribute-inserts

creates a dump with INSERT INTO (col1, col2...)


Then, you manually change the column order in the CREATE TABLE
statements, and restore the db.



(*) no, I dont' believe too much in emergent db design :-)


Reply With Quote
  #65  
Old   
Marco Mariani
 
Posts: n/a

Default Re: How to re-order fields in table? - 03-28-2008 , 03:34 AM



EricF wrote:

Quote:
You can do this with SQL Manager. There is a "Lite" version that is a free
download.
Another way, if you seldom do that (*) and you can dump and restore the DB:

pg_dump -d --attribute-inserts

creates a dump with INSERT INTO (col1, col2...)


Then, you manually change the column order in the CREATE TABLE
statements, and restore the db.



(*) no, I dont' believe too much in emergent db design :-)


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.