Substr Function In Sql