📜  oracle 案例 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:16.834000             🧑  作者: Mango

代码示例1
SELECT product_id, product_type_id,
  CASE product_type_id
    WHEN 1 THEN 'Book'
    WHEN 2 THEN 'Video'
    WHEN 3 THEN 'DVD'
    WHEN 4 THEN 'CD'
    ELSE 'Magazine'
  END
FROM products;