Basic HTML version of Foils prepared April 15 1997

Foil 27 Access SQL - III

From Examples of JDBC -- Microsoft Access CPS616 -- Information Track of CPS -- Spring Semester 97. by Sangeeta Aggarwal,Tom Pulikal,Udayan Pravate(Nancy McCracken) *

1 The UPDATE Statement: Used to change values in one or more columns in a table.
2 Syntax: UPDATE table-or-query
3 SET column1=expression1[,column2=expression2][,..]
4 [WHERE criteria];
5 Example: UPDATE tblMenu SET tblMenu.Price = {Price]*1.1 WHERE MenuDescription Not Like "*Pizza";
6 The DELETE Statement: Used to delete rows from tables.
  • Syntax: DELETE [table.*]
7 FROM from-clause
8 [WHERE criteria];
9 Example: DELETE FROM tblMenu WHERE Discontinued = True;
10 The INSERT INTO Statement: Used to copy rows from one table into another or to add a single row of data to a table using a list of values.
11 Syntax: INSERT INTO target-table
12 select-statement;
13 Example: INSERT INTO tblCustomer SELECT * FROM tblCustomerNew;

Table Font Size


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Thu Aug 14 1997