Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Groovy SQL Delete Operation Examples

When a Record in a database table is not needed anymore then we may want to Delete it. There are two ways of deleting a record. One is called logical delete where the record is still in the table but a marker was set in one of the column to tell the application that uses the table to ignore it. The second one is called physical delete where we really delete the record in the databases. SQL provides the delete statement for physical delete. Below are examples on how to perform delete operation using Groovy SQL.



This post first appeared on Grails Cookbook, please read the originial post: here

Share the post

Groovy SQL Delete Operation Examples

×

Subscribe to Grails Cookbook

Get updates delivered right to your inbox!

Thank you for your subscription

×