I have a mysql database with a table that has a data for over 6 months which goes to 1.5 GB of data . I want to take a backup of only 4 days .And then put that in some other database in the same system.
Please suggest me how can i take a selective backup of only 4 days . I am using mysql gui tools .
Thanks,
edit
CREATE TRIGGER backup BEFORE INSERT ON table_from FOR EACH ROW BEGIN
INSERT INTO table_to SET (col1,col2,col3,col4) = (NEW.col1,new.col2,new.col3,new.col4);
END;
where do i put the query to insert the required number of rows .I tried running your query alone , it shows error in the query.