查找SQL语句中的错误
显示文章、提交人和最后回复时间select a.title,a.username,a.adddate from a,(select max(addddate) adddate from table where table.title=a.title)b上式有错么?如果没有请解释下为什么这么写
其他答案
以下两种都可以 ,你那样错了是因为from子句中的子查询不能和from子句中其他的表相关联select a.title,a.username,a.adddate from a,(select title,max(addddate) adddate from [table] group by title)bwhere b.title=a.titleselect title,username,(sel 展开
2010-08-20 03:29
来自北京市
赞(0)点赞赞(0)举报
房天下知识为您分享了一条干货
免责声明:问答内容均来源于互联网用户,房天下对其内容不负责任,如有版权或其他问题可以联系房天下进行删除。




