Tutorials & ManualsSQL YogaSQL YogaRecord ObjectsDelete Records from the Database Using SQL Record Objects

Delete Records from the Database Using SQL Record Objects

Create Record Array

put sqlrecord_createObject("lessons") into theRecordA

Fill In Primary Key Fields For Table

sqlrecord_set theRecordA, "id", 12 ## You must set the primary key column value(s)

Delete Record in Database

sqlrecord_delete theRecordA

put the result into theError

## The lesson record where id = 12 was deleted from the database

0 Comments

Add your comment

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.