[Home]  [Edit this page]  [Recent Changes]  [Special Pages]  [Help
SQLDelete

(SQL) DELETE

There are two forms of DELETE:
  • Deletes a table
  • Deletes records in a table

Deleting a table

DELETE  tablename


Deleting records in a table

DELETE FROM tablename
WHERE Condition
LIMIT MaxRecordsToDelete


Condition has the same syntax as in SELECT and UPDATE queries. If none is supplied, it deletes all records in a table (or all upto the LIMIT if one is given). The query returns the number of records that were deleted.



last edited (June 7, 2007) by bilderbikkel, Number of views: 2442, Current Rev: 3 (Diff)

[Edit this page]  [Page history]  [What links here]  [Discuss this topic]  [Printer Friendly]  

Members

Username:

Password:


Register
Forgot Password?




Programmers Heaven - for .NET, Java, C/C++ and WEB Developers!
© 1996-2008 Community Networks Ltd. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited. Violators of this policy may be subject to legal action. Please read Terms Of Use and Privacy Statement for more information. Development by Tore Nestenius at .NET Consultant - Synchron Data.