| View previous topic :: View next topic |
| Author |
Message |
Keith Sayers General User


Joined: 09 Mar 2007 Posts: 30
|
Posted: Tue Sep 28, 2010 9:41 pm Post subject: [SOLVED] New field - position in a table |
|
|
I have an extant table to which I would like to add a new field - in the second position. First field is an ID which serves as the index and I would like the new field to come before all others. It appears that the only place I can add is at the end, below all others. I have tried various ways of moving it from there up the hierarchy but none has worked. I assume I am missing something - could anyone help, please? =
P.S. is there an emoticon for a bearded smiley? That is what the = should be. _________________ Keith Sayers keiths@apex.net.au
Last edited by Keith Sayers on Thu Sep 30, 2010 2:08 pm; edited 1 time in total |
|
| Back to top |
|
 |
Sliderule Super User


Joined: 29 May 2004 Posts: 2474 Location: 3rd Rock From The Sun
|
|
| Back to top |
|
 |
Keith Sayers General User


Joined: 09 Mar 2007 Posts: 30
|
Posted: Thu Sep 30, 2010 2:06 pm Post subject: |
|
|
Well, well - ingenious! This worked :
ALTER TABLE "TableName"
ADD COLUMN "NewName" VARCHAR(40)
BEFORE "Extant Name"
Now that I know how to handle that SQL facility I may use it to solve other problems.
My thanks to everyone. _________________ Keith Sayers keiths@apex.net.au |
|
| Back to top |
|
 |
|