Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

ADD multiple columns AFTER a specific column using one query

$
0
0
Hello everyone, i am new in this website and MySQL and i'm loving it :D

I need to add a set of columns to a table, but i need to add them after a specific column, can this be done in one query without having to specify AFTER for each column like this?

ALTER TABLE details
ADD address VARCHAR(255) AFTER name,
ADD city VARCHAR(255) AFTER address,
ADD state VARCHAR(255) AFTER city,
....
....

Thanks in advance!

Viewing all articles
Browse latest Browse all 13329

Trending Articles