Delete data from database

This will delete data from the database.

The first query will delete all records where First Name is 'Tom'.
This is done by using the WHERE statement.

<cfquery name="del_person" datasource="persondb" username="" password="">
DELETE * FROM person 
WHERE
Person_First_Name = 'Tom'
</cfquery>

This query will delete all records in the database.

<cfquery name="del_person" datasource="persondb" username="" password="">
DELETE * FROM person 
</cfquery>

Advertisement

Playboy

No User Comments.

No User Comments, be the first one to write your comments?

ApplayIT is owned by Scandic Systems LTD [UK] Company No. 5984000. All other trademarks and copyrights are the property of their respective holders.