60 likes | 207 Views
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.
E N D
SQL Data Modification Statements
SQL: Modifications Inserting new data (2 methods) Insert Into Table Values(A1,A2,…,An) Insert Into Table Select-Statement
SQL: Modifications Deleting existing data Delete From Table Where Condition
SQL: Modifications Updating existing data UpdateTable • Set Attr= Expression • Where Condition
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)