I want to add this to the existing table in my database, but I get this error!
ALTER TABLE renting ADD renting_date TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' , ADD payment_amount DOUBLE(10) NOT NULL , ADD pay_date TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' , ADD pay_due_date TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' , ADD debts DOUBLE(10) NOT NULL ;
What's the error here?
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') NOT NULL , ADD pay_date
TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' , ' at line 1