Sql String Functions Substring In C