Hello,

Can a query be written to return required columns along with some delimiter?

Example :

#User is a class, it has firstname, lastname, age, password
q = session.query(User.firstname,User.lastname,User.age,User.password).all()

#this would return [(fname,lname,22,pwd),....]

How can I modify this query to return something like :

[(fname~lname~22~pwd)...] with '~' being preferred delimiter.

I would like to know if I can return something like above directly from the
query itself.

Thanks,
Harish

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to