def my_exporter():
    return str(db(...).select(...))


On 21 Apr, 08:52, Hans <johann.scheibelho...@easytouch-edv.com> wrote:
> I would like to make a controller function that does csv export of a
> join select (similar like SQL below but into csv - temporary table ok
> if necessary) . How can this be done in web2py?
>
> SELECT Persons.LastName,Orders.OrderNo INTO Persons_Order_Backup FROM
> Persons INNER JOIN Orders ON Persons.P_Id=Orders.P_Id
>
> Thanks,
> Hans
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to