Michael Bayer wrote:

>use literal_column('fixedstring') in the column clause
>  
>
what's the difference between literal and literal_column?
literal_column doesn't work for me...
NameError: name 'literal_column' is not defined

jo

>On Mar 19, 2007, at 9:38 AM, Bertrand Croq wrote:
>
>  
>
>>hi,
>>
>>I am currently using sqlalchemy to build SQL queries and it's a  
>>fantastic
>>tool! By now, I am looking for a way to build:
>>
>> SELECT 'a_fixed_string', atable.col1, atable.col2
>> FROM atable
>>
>>using the syntax:
>>
>> select([XXX, atable.c.col1, atable.c.col2])
>>
>>but I don't know what to put at XXX.
>>
>>Does anyone have a clue ?
>>
>>-- 
>>Bertrand Croq,
>>Ingénieur Développement
>>___________________________________________________________________
>>Net-ng                          Tel  : +33 (0)223 21 21 52
>>Immeuble Germanium              Fax  : +33 (0)223 21 21 60
>>80 av. des Buttes de Coesmes    Web   : http://www.net-ng.com
>>35000 RENNES                    e-mail: [EMAIL PROTECTED]
>>FRANCE
>>
>>____________________________________________________________________
>>Ce message et tout document joint sont confidentiels. Toute  
>>diffusion ou
>>publication en est interdite. Si vous recevez ce message par erreur,
>>merci d'en avertir immédiatement l'expéditeur par e-mail et de
>>supprimer ce message et tout document joint.
>>____________________________________________________________________
>>This message and any attachment are confidential. Any use is  
>>prohibited
>>except formal approval. If you receive this message in error, please
>>notify the sender by return e-mail and delete this message and any
>>attachment from your system.
>>____________________________________________________________________
>>
>>
>>    
>>
>
>
>>
>  
>


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to