13- MySQL Delete Data


MySQL Delete Data is used In Deleting data using MySQL the DELETE Statement is used.


DELETE FROM tablename
WHERE specificcolumn = correspondingvalue

MySQL Delete Data


Take Note! Using the DELETE command you must not forget to include the WHERE clause because the Where clause is used to specify record you want to delete. Without having the WHERE clause, all records in the table will be deleted.

Here the following examples in Deleting record from “tblpeople”.

Example using MySQLi(Object-Oriented):


Example using MySQLi(Procedural):


Example using PDO:


Our Previous Topic Called: 12- MySQL Select Data

Facebook Comments


Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.