• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Phpmyadmin

xTremoxx

domasturb(cid, genital)
Joined
Aug 11, 2007
Messages
418
Reaction score
6
Location
Brazil
Hello friends, i need to add this structures in House Table:

Code:
`bid` int(11) NOT NULL DEFAULT '0',
 `bid_end` int(11) NOT NULL DEFAULT '0',
 `last_bid` int(11) NOT NULL DEFAULT '0',
 `highest_bidder` int(11) NOT NULL DEFAULT '0',

What command i need to use in phpmyadmin?
 
Code:
ALTER TABLE houses_or_whatever_the_name_is
    ADD COLUMN bid int (11) NOT NULL DEFAULT '0',
    ADD COLUMN bid_end int (11) NOT NULL DEFAULT '0',
    ADD COLUMN last_bid int (11) NOT NULL DEFAULT '0',
    ADD COLUMN highest_bidder int (11) NOT NULL DEFAULT '0';


Change houses_or_whatever_the_name_is to the table name
 
Last edited:
Tks to reply, i get error:
  1. Missing comma before start of a new alter operation. (near "ADD" at position 74)

yeah, if you honestly can't figure it out from here, you probably shouldn't even be touching an SQL database. :|


Code:
ALTER TABLE 'houses_or_whatever_the_name_is'
    ADD COLUMN bid int (11) NOT NULL DEFAULT '0',
    ADD COLUMN bid_end int (11) NOT NULL DEFAULT '0',
    ADD COLUMN last_bid int (11) NOT NULL DEFAULT '0',
    ADD COLUMN highest_bidder int (11) NOT NULL DEFAULT '0';
 
Back
Top