how to create tree view in mysql using stored procedure
问题 I am confused. I don't know how to create a tree view in MySQL using stored procedure. I tried searching in Google and I don't understand how to query. I have deptid | dept_code | dept_name | parent_deptid 1 1 wadir Umum 0 2 101 bagian umum 1 3 10101 kepala umum 2 4 102 bagian privasi 1 5 1010101 SUb bagian Tu 3 6 1010102 bagian umum 3 and I want to make it like this deptid | dept_code | dept_name | parent_deptid 1 1 wadir Umum 0 2 101 -bagian umum 1 3 10101 --kepala umum 2 5 1010101 ---Sub