例:
SELECT
CASE
WHEN (store_size <= (100)::NUMERIC)
THEN '小店'::TEXT
WHEN (store_size >= (200)::NUMERIC)
THEN '大店'::TEXT
ELSE '中店'::TEXT
END AS store_area_level
FROM SALE
例:
SELECT
CASE
WHEN (store_size <= (100)::NUMERIC)
THEN '小店'::TEXT
WHEN (store_size >= (200)::NUMERIC)
THEN '大店'::TEXT
ELSE '中店'::TEXT
END AS store_area_level
FROM SALE
PostgreSQL教程
PostgreSQL全面剖析
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M