sql - Select records that start with special letter -



sql - Select records that start with special letter -

imagine have table several records below:

zare azre arze arez

i want find records contain 'z' if search in these records first find 'zare' because start 'z', sec find 'azre' because z sec letter , etc

you can seek this:

select * tbl col '%z%' order charindex('z', col)

sql sql-server tsql

Comments

Popular posts from this blog

javascript - mongodb won't find my schema method in nested container -

Hibernate criteria by a list of natural ids -

ios - Lagging ScrollView with UIWebview inside -