I am working with sql language. I want to select a substring from the string : Rayan.
When I execute, select substring(col1, 1, 5) from table1 it works fine.
My question is, If I give the length of the string more than it exists, it will shown the same result?
ie, select substring(col1, 1, 6) from table1
result : Rayan
Now my need : If we give the length more than the string length, it will not return anything. Anyone have any idea?
Fiddle : http://sqlfiddle.com/#!2/90438/2