Raised This Month: $ Target: $400
 0% 

SQL table alter


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
pRED*
Join Date: Dec 2006
Old 04-25-2007 , 06:27   SQL table alter
Reply With Quote #1

Is there anyway to tell what column exist in a SQL table?

I want to edit the table I use for bf2 rank mod to allow more stuff to be saved.

I know I need to execute a command like this..

Code:
SQL ALTER bf2rank ADD moresavingdata INT(4)...
But how can I check if these columns exists (no point in creating the column every map change..) or how could I remember that the command had been run before so not to do it again.

Using SQLx btw.

Thanks
pRED* is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:36.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode