Im trying to import a CSV file it all works if I do not include
WHERE ""TBCSV"".""BLINGSO"" NOT IN ""xdata"".""BLINGSO""
i want if xdata.BLINGSO exits do not import that record from TBCSV database, what did I do wrong? Thank so much for your time.
oStatement = ThisDatabaseDocument.CurrentController.ActiveConnection.createStatement()
sCopy = "INSERT INTO ""xdata"" (SELECT ""TBCSV"".""DATE"", ""TBCSV"".""DESCR"", ""TBCSV"".""SKU"", replace(""TBCSV"".""QTY"",',','.'), ""TBCSV"".""VALORTT"", ""TBCSV"".""MRK"", ""TBCSV"".""MRKSO"", ""TBCSV"".""BLINGSO"", ""TBCSV"".""FRETE"", ""TBCSV"".""NF"", ""TBCSV"".""NAME"",False,null FROM ""TBCSV"", ""xdata"" WHERE ""TBCSV"".""BLINGSO"" NOT IN ""xdata"".""BLINGSO"")"
oStatement.executeUpdate( sCopy )