日期:2014-05-17 浏览次数:20540 次
SELECT NOTES,CASE WHEN NOTES LIKE '%船公司%' THEN 'A' WHEN NOTES LIKE '%另堆%' THEN 'B' END AS Result FROM (
SELECT '2012-08-30 15:42:44:不可发,船公司做年检 ' AS NOTES UNION ALL
SELECT '2012-08-30 15:45:59:不可发,船公司做年检 ' UNION ALL
SELECT '2012-03-26 15:14:07]另堆,A类箱' UNION ALL
SELECT '2012-05-29 12:13:43:退东,退租号621212 '
) A