FROM tab1 ORDER BY col1[1,3] .. while Microsoft SQL SERVER provides the SUBSTR() function, to extract a substring from a string expression: SELECT .... FROM tab1 WHERE SUBSTRING(col1,2,2) = 'RO' SELECT SUBSTRING('Some text',6,3) FROM tab1 -- Gives 'tex'
↧