SQL count()函数 指定条件

it2025-02-27  27

 

demo:

COUNT(CASE WHEN field1 = 'value1' THEN 1 ELSE NULL END) AS count_name

 

最新回复(0)