标签: emacs elisp
如上图所示,它错过了WITH Tbl(col) AS( SELECT '1_987123' UNION ALL SELECT '12_987654' UNION ALL SELECT '12' ) SELECT CASE WHEN CHARINDEX('_', col) > 0 THEN LEFT(col, CHARINDEX('_', col)-1) ELSE col END FROM Tbl 候选人。
WITH Tbl(col) AS( SELECT '1_987123' UNION ALL SELECT '12_987654' UNION ALL SELECT '12' ) SELECT CASE WHEN CHARINDEX('_', col) > 0 THEN LEFT(col, CHARINDEX('_', col)-1) ELSE col END FROM Tbl
困惑!