我有一个字符串:
@string='TEST RESULTS\TEST 1\RESULT 1
除数字外,字符串/文本保持不变
- 需要来自 TEST 的 1
- 需要 1 来自 RESULT
用于如下查询:
SET @sql = "SELECT *
FROM TABLE
WHERE test = (expression FOR CASE 1 resulting IN INT 1)
AND result = (expression FOR CASE 2 resulting IN INT 1)"