那就换 CharIndex
帮助里的
CharIndex
返回给定子字符串首次出现的位置,例如:CharIndex('b','abcdefg') = 2
SELECT itemvalue From {base_dict} where Left(Cast(itemvalue AS Varchar(20)),2)= '23'