DW记录集SQL语法错误求解答!! 5
SELECTbbsmain.bbsID,FIRST(bbsmain.bbstime)ASbbstime,FIRST(bbsmain.bbsshits)ASbbshits,...
SELECT
bbsmain.bbsID,
FIRST(bbsmain.bbstime)AS bbstime, FIRST(bbsmain.bbsshits)AS bbshits,
FIRST (bbsmain.bbstitle) AS bbstitle,FIRST (bbsmain.bbsurl) AS bbssurl, FIRST (bbsmain.bbsemail)AS bbsemail,FIRST(bbsmain.bbssex)AS bbssex,FIRST (bbsmain)AS bbsface, FIRST(bbsmain.bbscontent)AS bbscintent,
FIRST(bbsmain.bbsname)AS bbsname,COUNT(bbsref.bbsmainID)AS RetunNum,
MAX(bbsref.bbstime)AS LatesTime
FROM
bbsmainLEFT OUTER JOIN bbsrefON
bbsmain.bbsID=bbsref.bbsmainID
GROUP BY bbsmain.bbsID
--------以上代码--------
测试的时候提示 FROM 语法错误。
求大神解答下。 展开
bbsmain.bbsID,
FIRST(bbsmain.bbstime)AS bbstime, FIRST(bbsmain.bbsshits)AS bbshits,
FIRST (bbsmain.bbstitle) AS bbstitle,FIRST (bbsmain.bbsurl) AS bbssurl, FIRST (bbsmain.bbsemail)AS bbsemail,FIRST(bbsmain.bbssex)AS bbssex,FIRST (bbsmain)AS bbsface, FIRST(bbsmain.bbscontent)AS bbscintent,
FIRST(bbsmain.bbsname)AS bbsname,COUNT(bbsref.bbsmainID)AS RetunNum,
MAX(bbsref.bbstime)AS LatesTime
FROM
bbsmainLEFT OUTER JOIN bbsrefON
bbsmain.bbsID=bbsref.bbsmainID
GROUP BY bbsmain.bbsID
--------以上代码--------
测试的时候提示 FROM 语法错误。
求大神解答下。 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询