Advertisement
popov-aa

Untitled

Dec 5th, 2024
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PL/SQL 0.24 KB | None | 0 0
  1. $category_id = RandomUuid(1);
  2. $id1 = RandomUuid(2);
  3. $id2 = RandomUuid(3);
  4.  
  5. INSERT INTO
  6.     my_table(category_id, id)
  7. VALUES
  8.     ($category_id, $id1),
  9.     ($category_id, $id2);
  10.  
  11. SELECT $category_id AS category_id, $id1 AS id1, $id2 AS id2;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement