Thanks Jorge. Once again, the list has bailed me out!
-Jim
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Jorge Godoy
Sent: Friday, January 12, 2007 4:41 PM
To: [email protected]
Subject: [TurboGears] Re: Dynamic SQL Help
"Jim Steil" <[EMAIL PROTECTED]> writes:
> Im trying to dynamically build an SQL statement, actually, just the where
> clause. I know Ive seen sample of this using SQLObject somewhere, but I
> cant find them again. I seem to remember seeing something about adding to
a
> where clause. Can someone help me find what Im looking for? Im happy
to
> elaborate on my needs if what Ive said so far doesnt make enough sense.
users = model.User.select()
filtered_users = users.filter(model.User.q.login_name.startswith('a'))
Be seeing you,
--
Jorge Godoy <[EMAIL PROTECTED]>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---