From: Gerhard H. <gh...@gh...> - 2004-11-26 08:40:01
|
On Fri, Nov 26, 2004 at 02:36:55PM +1000, Timothy Smith wrote: > is there another way to provide arguements to a query besides tuples? eg. > cur.excute("Select %s from table", (column)) > becuase tuples cannot grow or shrink this is VERY limiting, i am in a=20 > situation right now where i need to select a range of days of week,=20 > because the length might change using a tuple is a pain. The second argument to execute() must be a sequence. You can use tuples, or lists, for example. -- Gerhard |