查询树形结构当前节点以及子节点

select * from table_name t start with id = '1' connect by prior t.id = t.parentId;