1 / 5

SQL

SQL. Data Modification Statements. SQL: Modifications. Inserting new data (2 methods). Insert Into Table Values( A 1 , A 2 ,…, A n ). Insert Into Table Select-Statement. SQL: Modifications. Deleting existing data. Delete From Table Where Condition. SQL: Modifications.

sona
Download Presentation

SQL

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. SQL Data Modification Statements

  2. SQL: Modifications Inserting new data (2 methods) Insert Into Table Values(A1,A2,…,An) Insert Into Table Select-Statement

  3. SQL: Modifications Deleting existing data Delete From Table Where Condition

  4. SQL: Modifications Updating existing data UpdateTable • Set Attr= Expression • Where Condition

  5. SQL: Modifications Updating existing data UpdateTable • Set A1=Expr1,A2=Expr2,…,An=Exprn • Where Condition Demo: simple college admissions database College(cName,state,enrollment) Student(sID,sName,GPA,sizeHS) Apply(sID,cName,major,decision)

More Related