asp字符串提取
现在不固定字符串,如“中国,日本,美国,英国”,该字符串长度不固定,词与词之间用逗号分隔,只有一个词语时无逗号,现在要求将该字符串中的词组分别提取出来,并且输出如下格式: or country like '"%中国%"' or country like '"%日本%"' or country like '"%美国%"' or country like '"%英国%"'
执行结果: or country like '"%中国%"' or country like '"%日本%"' or country like '"%美国%"' or country like '"%英国%"'
答:Right 函数 从字符串右边返回指定数目的字符。 Right(string, length) 参数 string 字符串表达式,其最右边的字符被返回。如果 s...详情>>