PHPz2017-04-17 16:27:15
select a.*,b.name pname from table a,table b where a.pid=b.id and b.id=3
怪我咯2017-04-17 16:27:15
SELECT fileds FROM table_name WHERE pid=id;
If the amount of data is not large, the program can recursively traverse the query spanning tree;
PHP中文网2017-04-17 16:27:15
Oracle has a syntax that supports tree queries. For MySQL, you can only process it through code
ringa_lee2017-04-17 16:27:15
Use php+mysql to implement through recursion
Portal:
http://blog.csdn.net/u0102656...