(czp@nebula) [nba]> match (v:player) where v.age in [41,42,43] return count(v.age)
+--------------+
| count(v.age) |
+--------------+
| 4 |
+--------------+
Got 1 rows (time spent 16552/16874 us)
(czp@nebula) [nba]> match (v:player) return count(case when v.age in [41,42,43] then true end)
+------------------------------------------------------+
| count(CASE WHEN (v.age IN [41,42,43]) THEN true END) |
+------------------------------------------------------+
| 4 |
+------------------------------------------------------+
Got 1 rows (time spent 15062/15367 us)
7 个赞