oracle 子查询 这种写法,是什么错误呢
发布网友
发布时间:2024-10-02 18:29
我来回答
共1个回答
热心网友
时间:2024-10-22 11:37
SELECT COUNT('number')
FROM (SELECT COUNT(*)
FROM km_lore_doc_sort t0
INNER JOIN km_lore_depot_sort t2 ON t0.sortid = t2.id
WHERE t2.leftnum BETWEEN &leftnum667 AND &leftnum668
AND t0.scurrent = &scurrent669
GROUP BY t0.editionid)
是这样吗?
后面的 number [ (leftnum667=>'1') (leftnum668=>'50') (scurrent669=>'Current') ]933: ORA-00933: SQL command not properly ended 没有看懂追问后面 num 为 子查询的 别名么,,,,我已搞定,,oracle 不用加别名。。。。不过还是谢谢你的引荐