Professional Documents
Culture Documents
Unidad 9
Introducción a SQL
Unidad 6
Autor
Isabel Ponce
Unidad 9
Objetivos
• Insertar datos
• Modificar datos
• Borrar datos
• Archivos Temporales
• Vistas
• Select into
Manipulación de Datos
• Sintaxis:
au_id = 409-56-7008
au_lname = Bennet
au_fname = Abraham
phone = 415 658-9932
address = 6223 Bateman St.
city = Berkeley
state = CA
zip = 94705
update authors
set city = 'Oakland West',
zip = '94611'
where city = 'Oakland' and
address like '%College%‘
update titles_ident
set title_id = 200
where title_id = 1 retornaría un error.
Update
update tp
set c1 = (select price
from titles
where title_id = ‘BU1032’)
where c1 = 5;
Update
• Por ejemplo:
truncate table authors;
es equivalente a:
delete from authors;