thanks!

2015-12-01 17:21 GMT-02:00 Anthony <abasta...@gmail.com>:

> web2py does not support the SQL UNION statement, but you can separately
> query the two tables and generate the union of the two Rows objects via
> Python:
>
> all_records = db(db.mytable).select() | db(db.mytable_archive).select()
>
> See
> http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Combining-rows
> .
>
> Anthony
>
>
> On Monday, November 30, 2015 at 12:31:46 PM UTC-5, Fabiano Almeida wrote:
>>
>> Hi All!
>>
>> I need create a report with record versioning. How to union table with
>> table_archive?
>>
>> Thanks!
>>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> 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 web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to