MySQL查詢語句處理結果-枚舉字段

[size=medium] [b]語法:CASE [COLUMN_] WHEN [situation] THEN .... END AS [NEW_NAME][/b] SELECT o.WMIO_CODE, CASE o.WMIO_TYPE WHEN 0 THEN '退貨入庫' WHEN 1 THEN '補貨入庫' WHEN 2 THEN '調撥入庫' END AS WMIO_TYPE,o.WMI
相關文章
相關標籤/搜索