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


On 21 Apr, 08:52, Hans <[email protected]> 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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to