Guest User

Untitled

a guest
Apr 26th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. INSERT INTO `table1` (`product_id`,`customer_group_id`,`priority`,`price`,`date_start`,`date_end`)
  2. VALUES
  3. ((SELECT `product_id` FROM `table2`
  4. WHERE
  5. product_code_id = '1223232ssdsad34'),'1','0','34332','2018-04-22','2018-04-26');
  6.  
  7. INSERT INTO table1 (product_id,customer_group_id,priority,price,date_start,date_end)
  8. (SELECT product_id ,'1','0',price * 0.9,'2018-04-22','2018-04-26'
  9. FROM table2
  10. WHERE product_code_id = '1223232ssdsad34');
Add Comment
Please, Sign In to add comment