Hi,
I want to ask that, can we add one or more columns at a specific position in existing table by sql query(not graphically).
Thanks: Anurag Singh
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Vikrant MoreRank #1,157 · 1.6K reputationPosted Feb 15, 2015, 2:31 AM EST
Anurag Singh131 reputationPosted Feb 16, 2015, 1:04 AM EST
Thanks Vikrant.
Akhil GargRank #772 · 3K reputationPosted Jan 20, 2015, 9:45 PM EST
Anurag Singh131 reputationPosted Jan 20, 2015, 10:23 PM EST
Anurag Singh131 reputationPosted Feb 15, 2015, 8:13 PM EST
I don't want to do it graphically.
I am looking the answer of this question by query.
Vikrant MoreRank #1,157 · 1.6K reputationPosted Feb 16, 2015, 12:45 AM EST
Anurag Singh131 reputationPosted Feb 16, 2015, 12:52 AM EST
So, it may be correct answer.
VulpesRank #55 · 29.2K reputationPosted Feb 16, 2015, 1:02 AM EST
Does it really matter anyway what order the columns are actually in?
What does matter is that when you query the table you can return the columns in whatever order you like.
Vikrant MoreRank #1,157 · 1.6K reputationPosted Feb 16, 2015, 1:02 AM EST
http://stackoverflow.com/questions/12671629/how-to-add-a-column-at-a-specific-position-in-a-table
if you want to change column position any how; you can create view on it by specifying proper position of columns.
satish patro3 reputationPosted Nov 26, 2019, 4:13 PM EST
Samir BhogaytaRank #1,266 · 1.4K reputationPosted Dec 2, 2019, 10:41 PM EST
Jebin DhanushRank #4,788 · 325 reputationPosted Jun 15, 2020, 12:30 AM EDT