Hi,

I'm basically looking for the best way to implement something that
produces SQL similar to:

select col1, col2 from table1 where col1 like '%this%is%some%search
%string?with?wildcards'

I have worked around this with using the extra() method of the query
but this can get real messy real fast.
I have also split the string on the wild cards and chained startswith,
endswith and contains. but the contains elements don't maintain the
order that I would like (and sometime absolutely must have)

does anyone have a neat solution to this that I have missed?

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
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