Jump to content

[SOLVED] alter table change the order of columns


anatak

Recommended Posts

Is it possible to change the order of the columns in a table after you created the table or do you have to drop the table and recreate it in the right order ?

 

I have a table products

with columns Id (primary key)

ModelId

Price

TypeId

 

I would like to put the TypeId column after the Id column but I am not sure if this is a good idea.

 

It is not really important just something that nags me subconsiously and I was wondering if you could alter the table or not.

 

kind regards

anatak

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.