bu2chlc

Untitled

Aug 5th, 2020
1,437
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.35 KB | None | 0 0
  1. Insert into posts (post_id, km, Make, Model, Color) values ('a_post_with_id1', '78022', "saab", "ugly car", "ugly green");
  2.  
  3. insert into images(img_id, post_id, image_name) values ('some random image id', '<same"a_post_with_id_1" from previous insert>, "uglycar.jpg");
  4.  
  5. timestamp should have the NOW value set in mysql, do not send a value on the insert
Advertisement
Add Comment
Please, Sign In to add comment