Have a question
I have a table and it has fields in it i dont want to lose the data in them.
Now i want to add some more fields to that table and also insert info into those new fields.
And do that all without losing old data.
How would i make that table and inserts.
below is new table. Now old one didn't have last 5 fields.
But in those last 5 fields i need to add 0.000 in them too
create table members_credits(
id int(11) not null auto_increment,
user_id integer,
credits_num float(14,3),
cred_lv_1 float(14,3) default NULL,
cred_lv_2 float(14,3) default NULL,
cred_lv_3 float(14,3) default NULL,
cred_lv_4 float(14,3) default NULL,
cred_lv_5 float(14,3) default NULL,
primary key(id)
);
I also have me another problem.
I have made a table called referrals which is below. From another table in the db i need to insert each id,userid from that table into this new table and then in field referrer i need to add a 0 in each.
How ?
CREATE TABLE referrals (
id int(11) NOT NULL auto_increment,
user int(11) default NULL,
referrer int(11) default NULL,
PRIMARY KEY (id)
);