Quote:
|
Originally Posted by thepercival
Does it really matter why I want this?
|
yes, knowing the reason why the person asking the question wants to do something will usually allow the person answering the question to understand the problem better
in this case, i'm having a hard time with the concept of wanting to add a column to a table more than once, such that you need to detect this in application logic before executing it
what's wrong with just allowing the database to return an error message?
granted, the error will not say "dude, that table already has that column" but translating the database error message into a user-friendly message is the job of your application, right?