Перейти к содержимому

SQL SERVER - DELETE - 4 formas de apagar dados das tabelas

Adilson Paranhos

0:00 / 0:00

SQL SERVER - DELETE - 4 formas de apagar dados das tabelas

4 598 просмотров · 4 г. назад
Adilson Paranhos
1,33 тыс. подписчиков
4 598 просмотров · 4 г. назад
#delete #apagarlinhas #sql #sqlnapratica Contato: https://linktr.ee/sqlnapratica Nesta vídeo aula vamos ver quatro formas de apagar linhas da tabela. Deletar um valor, vários valores, duas ou mais expressões e com subconsulta. Apagar um valor delete from tab_cliente where id_cliente =101 Vários valores delete from tab_cliente where id_cliente in( 102,103,105) Duas expressões delete from tab_cliente where id_cliente in( 110,111,115) and sexo = 'M' Subconsulta delete from tab_cliente where id_cliente in(select id_cliente from tab_cliente where sexo ='M')