Open QuXiangjie opened 6 months ago
608.Tree Node
# Write your MySQL query statement below select id, case when p_id is null then 'Root' when p_id in (select id from tree) and id in (select p_id from tree) then 'Inner' ELSE 'Leaf' end as type from Tree
case when (condition) then "label name" when (condition) then "label name" ELSE end as "col name" from where
608.Tree Node