繁体   English   中英

想要将列值与同一mysql表中的其他列值匹配

[英]want to match the column value with other column value in a same mysql table

这是通过表结构。

这是我的树

菜单树的图像实际上是静态名称,但是现在我要从数据库表中获取该名称。 我知道如何从表中选择记录,例如.. select * from table_name where parent=0 ...和选择子项select * from table_name where parent>0 ...我可以理解如何实现它,但问题是现在我想跑

 select * from table_name where parent>=0

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM