MySQL Forums
Forum List  »  Newbie

Re: ALTER Table ....
Posted by: Göran Pettersson
Date: August 22, 2004 10:32AM

Hi again.

What I more particular want to do is as follows.

A/
I want to check if 'colA' exist in 'myTable', and if not then add this column.
Something like:
if 'colA' not exist then ALTER TABLE `messages` ADD `colA` FLOAT

Is this possible, and how is the correct syntax then ??

B/
If it's possible, as described above, can I then test and add multipel columns ?

Thanks in advance

Göran P

Options: ReplyQuote


Subject
Written By
Posted
August 22, 2004 07:56AM
August 22, 2004 09:02AM
Re: ALTER Table ....
August 22, 2004 10:32AM
August 22, 2004 12:44PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.