1 / 5

DML + subconsulta

DML + subconsulta. SUBCONSULTA SELECT WHERE atributo IN* (SELECT ...). COMBINAÇÃO. DML INSERT UPDATE DELETE. “Filtro” de DML. DML UPDATE tabela SET campo=valor WHERE campo=valor DELETE FROM tabela WHERE campo=valor. “Filtro” de DML. DML UPDATE tabela SET campo=valor

Download Presentation

DML + subconsulta

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. DML + subconsulta

  2. SUBCONSULTA SELECT WHERE atributo IN* (SELECT ...) COMBINAÇÃO • DML • INSERT • UPDATE • DELETE

  3. “Filtro” de DML • DML • UPDATE tabela SET campo=valor • WHERE campo=valor • DELETE FROM tabela • WHERE campo=valor

  4. “Filtro” de DML • DML • UPDATE tabela SET campo=valor • WHERE campo=valor • DELETE FROM tabela • WHERE campo=valor Usar para linkar com um conjunto ( subconsulta)

  5. “Filtro” de DML • DML • UPDATE tabela SET campo=valor • WHERE campo IN ( select ...) • DELETE FROM tabela • WHERE campo= (select MAX(cod) FROM tabela2)

More Related