I have two tables linked as follows:
CREATE TABLE `property_details`( id INT NOT NULL, `name` VARCHAR(100), PRIMARY KEY(id) ) and
CREATE TABLE `hilton`( `property_id` INT NOT NULL, `start_date` DATE DEFAULT NULL, `end_date` DATE DEFAULT NULL, `msg` VARCHAR(100) DEFAULT NULL, `sunday` INT(11), `monday` INT(11), `tuesday` INT(11), `wednesday` INT(11), `thursday` INT(11), `friday` INT(11), `saturday` INT(11), FOREIGN KEY(property_id) REFERENCES property_details(id) ) I insert data in property_details table. eg..
INSERT INTO property_details(`id`,`name`) VALUES ('1','Hilton'); Now, i want to enter data in hilton table. Can u tell me how should i write query for entering data in hilton table?