MySQL中的分层查询 - 查找所有后代

时间:2016-06-17 18:50:30

标签: mysql adjacency-list hierarchical-query

this post here的答案提供了一个查询来查找邻接列表中节点的所有祖先。

现在,如何使用类似查询查找节点的所有后代?我试过了:

#2014 Commands out of sync. You can't run this command now

我只是交换senderid和receiverid,但它给了我import gpio from 'gpio'; import proximity from './proximity'; const gpio4 = gpio.export(4, { direction: 'in', }); // bind to the "change" event gpio4.on('change', (val) => { // value will report either 1 or 0 (number) when the value changes if (val === 1) { console.log('checking proximity'); proximity.getDistance(); } });

有什么想法吗?

0 个答案:

没有答案