J
Jack
I have an Access front end linked to an Oracle database via MS Oracle ODBC.
How do I use the sequence.NextVal in an Access append query to the Oracle DB?
I tried this approach, which does not work:
INSERT INTO FUEL_CAPTURE ( RECORDID, FuelID, FactionID )
SELECT RECORDIDFUEL_CAPTURE_SEQ.NextVal, Fuel.FUELID, Fuel.FACTIONID
FROM Fuel;
Notes:
RECORDID is the primary key in the Fuel_Capture table. The name of the
sequence defined in the Oracle database is RECORDIDFUEL_CAPTURE_SEQ.
Fuel and Fuel_Capture are tables in the Oracle database.
Thanx,
J
How do I use the sequence.NextVal in an Access append query to the Oracle DB?
I tried this approach, which does not work:
INSERT INTO FUEL_CAPTURE ( RECORDID, FuelID, FactionID )
SELECT RECORDIDFUEL_CAPTURE_SEQ.NextVal, Fuel.FUELID, Fuel.FACTIONID
FROM Fuel;
Notes:
RECORDID is the primary key in the Fuel_Capture table. The name of the
sequence defined in the Oracle database is RECORDIDFUEL_CAPTURE_SEQ.
Fuel and Fuel_Capture are tables in the Oracle database.
Thanx,
J