[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Simple PostgreSQL client library
- From: PA <petite.abeille@...>
- Date: Mon, 2 Apr 2007 19:24:49 +0200
On Apr 02, 2007, at 19:18, Tomas Guisasola Gorham wrote:
But why you need to use query parameters? Don't you solve that
in Lua with `string.format' or something like that?
Yes, you could generate a brand new statement each and every single
time... and force the db to parse the same statement over and over
again... on the other hand... using so called "prepared" statement
allow you to declare the statement once... and bind it to different
parameters when needed... saving a bit of work all around...