http://johnbutler.livejournal.com/ ([identity profile] johnbutler.livejournal.com) wrote in [personal profile] funeralcrasher 2006-09-20 03:25 am (UTC)

something like?

I gurgled this somewhere

SELECT id, COUNT(DISTINCT VARCHAR(RTRIM(LTRIM(elem)), 20)) FROM strings

maybe trim the length of the string minus 1?

In Python a string is an array, and you just ask for element 0. I'm guessing SQL does not make as much sense as Python.

I'm sure I'm wrong, but maybe you'll find something serendiculous.

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting