INSERT INTO "temp.db"
SELECT  卡号,  消费日期, 存入金额,  消费金额
FROM "posqd.DB" as D
WHERE  (select  卡号,  消费日期, 存入金额, 消费金额 from "pospz.db"
  where 卡号=D.卡号 AND 消费日期=D.消费日期 AND              
  消费金额= D.消费金额 AND 存入金额= D.存入金额)
      

解决方案 »

  1.   

    INSERT INTO "temp.db"(卡号,  消费日期, 存入金额,  消费金额)
    SELECT  卡号,  消费日期, 存入金额,  消费金额
    FROM "posqd.DB" as D
    WHERE  
    (select  卡号,  消费日期, 存入金额, 消费金额 from "pospz.db"
     where 卡号=D.卡号 AND 消费日期=D.消费日期
     AND 消费金额= D.消费金额 AND 存入金额= D.存入金额)
     
      

  2.   

    还是不行啊!怎么是‘invalid use of keyword lines number 7 :)
    是什么原因啊!