yourList = ['1','2','3','4']
stringForQuery = ','.join(yourList)

Regards,
Valts.

On Mon, Sep 1, 2008 at 4:30 PM, Bobby Roberts <[EMAIL PROTECTED]> wrote:

>
> Hi all.
>
>
> I have a simple list such as:
> ['1','2','3','4']
>
> I need to convert this to a string such as:
> 1,2,3,4
>
> so that I can use that in a sql function.
>
>
> any help is appreciated...
> >
>

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

Reply via email to