Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. select tabla1.campo1, tabla2.campo2
  2. into miTablaNueva
  3. from tabla1
  4. inner join tabla2 on tabla2.campo1 = tabla1.campo1
  5. where tabla1.otroCampo = 'Mi condición';
  6.  
  7. insert into miTablaExistente (campo1, campo2)
  8. select tabla1.campo1, tabla2.campo2
  9. from tabla1
  10. inner join tabla2 on tabla2.campo1 = tabla1.campo1
  11. where tabla1.otroCampo = 'Mi otra condición';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement