0% found this document useful (0 votes)
65 views1 page

Programming04 Handout 111 PDF

This document discusses three SQL statements for manipulating database tables: INSERT inserts new data entries, specifying column names and values; UPDATE updates existing data by defining the field and condition to change; DELETE deletes rows by using an optional WHERE clause to specify a condition or deletes all rows if no condition is provided, which cannot be undone.

Uploaded by

Chad Jamias
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
65 views1 page

Programming04 Handout 111 PDF

This document discusses three SQL statements for manipulating database tables: INSERT inserts new data entries, specifying column names and values; UPDATE updates existing data by defining the field and condition to change; DELETE deletes rows by using an optional WHERE clause to specify a condition or deletes all rows if no condition is provided, which cannot be undone.

Uploaded by

Chad Jamias
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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