SELECT * WHERE STOCK_CODE .NOT. IN(SELECT FROM (LCDPATH + 'HSTKM.DBF') STOCK_CODE) ORDER BY STOCK_CODE INTO TABLE (LCSPATH + '__HSTKM.DBF') FROM (LCSPATH + 'D_HSTKM.DBF') 发生错误: 命令中含有不能识别的短语或关键字。
SELECT (TCPATH + '\HSTKM') BB ON AA.STOCK_CODE = BB.STOCK_CODE AA.STOCK_CODE , AA.LOT_NO , AA.PRD_DATE , 'R' TYPE , BB.PACKING , LNAMTZERO - SUM(AA.AMOUNT) AMOUNT , LNQTYZERO - SUM(AA.QUANTITY * IIF(AA.UNIT = BB.UNIT,BB.PACKING,1)) QTY WHERE AA.DATE >= LDFROMDATE AND AA.DATE <= LDTODATE AND .NOT. EMPTY(AA.STOCK_CODE) AND AA.TYPE <> '*' AND AA.TYPE <> 'M' AND .NOT. '<<' $ AA.BAR_CODE GROUP BY AA.STOCK_CODE , AA.LOT_NO INTO TABLE (LCRETURNNAME) FROM (TCPATH + '\RETAIL') AA LEFT JOIN
发生错误: 命令中含有不能识别的短语或关键字
SELECT (TCPATH + '\GRNSTK') AA LEFT JOIN (TCPATH + '\HSTKM') BB ON AA.STOCK_CODE = BB.STOCK_CODE AA.STOCK_CODE , AA.LOT_NO , AA.PRD_DATE , 'G' TYPE , BB.PACKING , SUM(AA.AMOUNT) AMOUNT , SUM(AA.QUANTITY * IIF(AA.UNIT = BB.UNIT,BB.PACKING,1)) QTY WHERE CC.DATE >= LDFROMDATE AND CC.DATE <= LDTODATE AND AA.GRN_NO = CC.GRN_NO GROUP BY AA.STOCK_CODE , AA.LOT_NO INTO TABLE (LCTMPNAME) FROM (TCPATH + '\GRN') CC to
发生错误: 命令中含有不能识别的短语或关键字
SELECT (TCPATH + '\HSTKM') BB ON AA.STOCK_CODE = BB.STOCK_CODE AA.STOCK_CODE , AA.LOT_NO , AA.PRD_DATE , 'A' TYPE , BB.PACKING , LNAMTZERO AMOUNT , LNQTYZERO - SUM(AA.QUANTITY * IIF(AA.UNIT = BB.UNIT,BB.PACKING,1)) QTY WHERE AA.DATE >= LDFROMDATE AND AA.DATE <= LDTODATE AND (EMPTY(TCTAKENO) AND .NOT. (TLINCLUDETAKEADJ AND AA.REASON = '*') .OR. .NOT. (AA.INV_NO = SUBSTR(TCTAKENO,3,6) AND AA.REASON = '*')) GROUP BY AA.STOCK_CODE , AA.LOT_NO INTO TABLE (LCTMPNAME) FROM (TCPATH + '\ADJ') AA LEFT JOIN
发生错误: 命令中含有不能识别的短语或关键字