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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jebin DhanushPosted Jun 15, 2020, 4:30 AM
Samir BhogaytaPosted Dec 3, 2019, 3:41 AM
satish patroPosted Nov 26, 2019, 9:13 PM
Anurag SinghPosted Feb 16, 2015, 6:04 AM
Thanks Vikrant.
Vikrant MorePosted Feb 16, 2015, 6:02 AM
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.
VulpesPosted Feb 16, 2015, 6:02 AM
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.
Anurag SinghPosted Feb 16, 2015, 5:52 AM
So, it may be correct answer.
Vikrant MorePosted Feb 16, 2015, 5:45 AM
Anurag SinghPosted Feb 16, 2015, 1:13 AM
I don't want to do it graphically.
I am looking the answer of this question by query.
Vikrant MorePosted Feb 15, 2015, 7:31 AM
Anurag SinghPosted Jan 21, 2015, 3:23 AM
Akhil GargPosted Jan 21, 2015, 2:45 AM