try:
Field('name','list:string')
then select:
db.table.name.contains('string')
On Tuesday, 23 July 2013 09:37:00 UTC+8, Trevor Overman wrote:
>
> In my database, I have a list of items stored. What I am trying to do is
> select a database row when the list in the database contains the item that
> I am iterating through in the controller. Do anyone know how this could be
> done ?
>
> model
>
> db.define_table('table',
>
> Field('field_list','string')
>
> )
>
> controller
>
> for item in items:
>
> #db select here
>
>
> Thanks !
>
> -Trevor
>
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.