★ wanayoo — archive 1999 http://wdvl.com/Authoring/DB/Intro/delete.htmlNouvelle recherche | Portail wanayoo

Stock Market Analysis logo

internet.com
Join the free
WDVL newsletter!

home

Delete

September 13, 1998

Finally, SQL provides the DELETE operator for deleting rows from a table. The DELETE operator follows the syntax of:

   DELETE FROM table_name
   WHERE where_clause;

For example, to delete Lim Li Chuen from the EMPLOYEES table, you would use:

   DELETE FROM EMPLOYEES
   WHERE EMP_NAME = 'Lim Li Chuen';

Note that multiple rows may be deleted if they match the where clause. Note also that you can easily delete all rows in a table by not specifying a WHERE clause such as:

   DELETE FROM EMPLOYEES

Obviously you should be quite careful with DELETE!

Modifying Data
Introduction to Databases for the Web | Table of Contents
Introduction to Databases for the Web | Additional Resources

Up to => Home / Authoring / DB / Intro

Instantly look up a "techie" word using Webopedia!!


internet.com
e-commerce
WebDeveloper Network


All Net Research -- in one place

Copyright 1999 internet.com Corporation. Legal Notices. Privacy Policy.

www.internet.com