Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

adding column in between

Status
Not open for further replies.

nisha23

Programmer
Sep 23, 2003
19
US
Command -- (Alter Table
add col....)

Can I add column instead of end in between?
 
Yes, in mySQL [upsidedown].

I'm afraid not - unless you drop and recreate entire table, which EM already does (not recommended on larger tables in production database in any case).

------
"There's a man... He's bald and wears a short-sleeved shirt, and somehow he's very important to me. I think his name is Homer."
(Jack O'Neill, Stargate)
[banghead]
 
I am working in Microsoft Sql Server.
I don't want to drop table, that means the only option is to add at the end.
 
If ordinal position of columns really matters (aesthetical reasons or whatever), do it with EM - preferably during development phase, when tables are small. Data won't be lost.



------
"There's a man... He's bald and wears a short-sleeved shirt, and somehow he's very important to me. I think his name is Homer."
(Jack O'Neill, Stargate)
[banghead]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top