lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



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...