例如:
id name parent_id
1   ty1     0
2   ty2     1
3   tyb1    0
4   ty3     2
parent_id记录父栏目的ID怎样用一条查询语句,通过id=4,查询出ty3,ty2,ty1出来呢?用一条查询的语句。