You are on page 1of 1

SH1680

Database Table Manipulation


I. INSERT INTO Statement
 It inserts new data entries in a database table.
 It can be written in two (2) forms:
o The first statement does not specify any column names and simply contains the
values that will be put in their respective fields.
o The second statement specifies column names and the values that will be inserted
in them.

II. UPDATE Statement


 It updates existing data in a database table.
 The SET clause defines which field is to be updated as a condition.

III. DELETE Statement


 It deletes rows/data entries in a table.
 It also uses the WHERE clause to find a given condition, and then delete the row
containing that condition.
 Removing the WHERE clause will delete ALL the records/rows/entries in a table.
 Careful consideration must be given when deleting all records as this action cannot be
undone once the statement is executed.

References
 Coronel, C., Crockett, K., and Rob, P. (2012). Database systems: Design,
implementation & management. USA: Cengage Learning EMEA
 Singh, S. K. (2009). Database systems: Concepts, design and applications. India:
Pearson Education.
 Adamski, J. and Pratt, P. (2012). Database management systems (7th ed.). USA:
Cengage Learning
 Elmarsi, R. and Navathe, S. (2010). Fundamentals of database systems (6th ed.).
Pearson Education South Asia Pte. Ltd.
 Rockoff, L. (2011). The language of SQL. Cengage Learning.
 Korth, H., Silberschatz, A., and Sudarshan, S. (2011). Database system concepts
(6th ed.). New York. McGraw-Hill.
 Helpvids - Microsoft excel: How to insert or delete cells, rows, and columns (n.d.).
Retrieved on March 6, 2017 at https://www.youtube.com/watch?v=zP7elR-UJuo.

04 Handout 1 *Property of STI


Page 1 of 1

You might also like