[Zope] Deleting data using ZSQL

Steve Drees drees@the-bridge.net
Fri, 29 Sep 2000 09:00:56 -0500


> -----Original Message-----
> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of
> technews@egsx.com
> Sent: Thursday, September 28, 2000 10:17 PM
> To: zope@zope.org
> Subject: [Zope] Deleting data using ZSQL
> 
> 
> Hi,
> 
> I am writing a dtml method that deletes data from a database, and I found
> myself unable to do this.  It seems that ZSQL is used to insert, update
> and query a database. but can not use
> "delete from table where var=<dtml-var foo>"


delete from this_table where var=<dtml-sqlvar foo type=string>  
is what I use (Changing type accordingly of course).

>