Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- INSERT INTO `table1` (`name`) VALUES ('Яблоки');
- INSERT INTO `table2` (`table1_id`, `color`)
- SELECT t1.ID, 'зелёные'
- FROM `table1` t1
- WHERE t1.`name` = 'Яблоки';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement