您的位置:首页 > 数据库

乐商商品分类 可按照SQL 同一个表、单表 联合查询 导出商品分类数据

2014-04-23 10:42 561 查看
数据库实现语句

select c.id,c.parentid,c.title,d.title as '上级名称'

from (select id,parentid,title from nav a where exists(select * from nav b where b.id=a.parentid)) c,nav d

where d.id=c.parentid
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐