Guest User

Untitled

a guest
Jul 20th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. p_id p_type name
  2. ----------------------------------
  3. 100 Y hong
  4. 101 Y kim
  5. 200 N park
  6. 201 N John
  7.  
  8. insert into test(p_id,p_type,name)
  9. select (max(p_id)+1),'Y','choi' from test where p_type='Y'
Add Comment
Please, Sign In to add comment