If I understood well you need to do:

person = db.define_table('another_name',Field(...),Field(...),migrate=False)

so you have 'person' object.

person.insert(name='blablabla')

rows = db(person.name=='blablabla').select()



2010/12/31 Marcello Parra <[email protected]>

> Hello,
>
> I have a legacy database, and want to access it with web2py.
> One table is called "another_name" in the database (mysql).
>
> But I want to use it in web2py as:
>
> db.define_table('person', Field('name'))
>
> I read docs, but could not figure this out....
>
> Thanks for any help...
>
> Marcello
>



-- 

Bruno Rocha
http://about.me/rochacbruno/bio

Reply via email to