我在 MySQL 中遇到以下 Case 语句的问题:
CASE
WHEN
((SUBSTRING_INDEX('Provider - Remote Client - North', '-', -2) = ('Provider - Remote Client - North')) then SUBSTRING_INDEX('Provider - Remote Client - North', '-', -1)
ELSE SUBSTRING_INDEX('Provider - Remote Client - North', '-', -2)
END CASE
我收到错误“出乎意料”有人可以建议吗?!?谢谢