Re: [Zope-DB] ZSQL Question - Insert multiple rows in one statement?

2010-08-24 Thread Garry Saddington
Garry Saddington wrote: Andreas Jung wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I would assume that you can use DTML-IN for looping and generating multiple SQL statements of the same kind. You have to ensure that the statements having a proper delimiter (there was something

Re: [Zope-DB] Calling SQL Query in DTML Method with a string argument

2008-07-28 Thread Garry Saddington
-var Uni_Longitude/ /dtml-in /markers or just let the ZSQL get the argument from the REQUEST: markers dtml-in uniSingleByCode mrk nm=dtml-var Uni_Name lat=dtml-var Uni_Latitude lng=dtml-var Uni_Longitude/ /dtml-in /markers HTH regards Garry

Re: [Zope-DB] case insensitive ZSQL queries

2007-09-06 Thread garry saddington
dtml-or dtml-sqltest client op=like type=string optional /dtml-sqlgroup Thanks... Jim If you use Postgresql then change the 'like' to 'ilike'. Regards Garry ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo

Re: [Zope-DB] Please help me about driver adapter

2007-02-15 Thread garry saddington
://www.plope.com/Books/2_7Edition/RelationalDatabases.stx there you find examples how to use a query with like. robert Here's an example of how to use like and wildcards in sqlvar's select * from students where surname ilike dtml-sqlvar expr='%'+surname+'%' type=string Regards Garry

[Zope-DB] psycopg in python script

2006-02-23 Thread garry
How can I access a Psycopg_database_connection within a python script. So far I have this which only returns a connection instance, but I want to pass the connection a query string. query1=context.Psycopg_database_connection('select * from studentdetails') return query1 Regards Garry

Re: [Zope-DB] optional arguments to zsql methods

2006-02-22 Thread garry
Charlie Clark wrote: On 2006-02-22 at 22:10:20 [+0100], garry [EMAIL PROTECTED] wrote: I am importing a large data set via Zope into a Postgres database. Data items may or may not exist so I am using the optional argument in the zsql methods. What I want is that if the data is missing