我试图运行以下代码
PROC SQL;
CREATE TABLE _check AS
SELECT DISTINCT * FROM table1 as a
INNER JOIN table2 as b
ON ON UPCASE(b.Cname) contains UPCASE(SUBSTRING(CNAMN, 1, 4))
;
quit;
但我收到了错误
ERROR 22-322:语法错误,需要以下其中一项:!,!!,&,*,**,+, - ,/,<,< =, <>,=,>,> =,?,AND,BETWEEN,CONTAINS,EQ,EQT,FROM,GE,GET,GT,GTT,IN,IS, LE,LET,LIKE,LT,LTT,NE,NET,NOT,NOTIN,OR,^,^ =,|,||,〜,〜=。
ERROR 76-322:语法错误,语句将被忽略。
任何线索?处理包含中的子串的正确语法是什么?
提前致谢