Quantcast
Channel: Substring In Sql | Automatic Website Traffic RSS
Viewing all articles
Browse latest Browse all 989

Substrings in SQL

$
0
0
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'

Viewing all articles
Browse latest Browse all 989

Trending Articles