[Tutor] sqlite3 select extra characters

Lang Hurst lang at tharin.com
Fri Jun 18 17:14:00 CEST 2010


Thanks.

Alan Gauld wrote:
> "Lang Hurst" <lang at tharin.com> wrote
>
>> Is there a way to just return the values when using sqlite3?
>
> I don't think so, select returns a tuple of values, even if there is 
> only one value.
>
>> I get the list I want, but they look like
>>
>> (u'Cleese, John')
>
>> is there a way to just return
>>
>> Cleese, John
>>
>> It seems a shame to have to run the answers through a stip process.
>
> It's hardly a major effort to index the item?
>
> print name[0]
>
> instead of
>
> print name
>
> HTH,
>


-- 
There are no stupid questions, just stupid people.



More information about the Tutor mailing list