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 -

r - url in CRAN extension manual -

asp.net - .NET Control.ID property inconsistency -