Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

updating oracle table

Status
Not open for further replies.

joeythelips

IS-IT--Management
Aug 1, 2001
305
IE
Hi.

I have an oracle database with a table called contracts.
Every customer i have has a contract.
The table has 2 fields:
a/c number
consumption.
I have 400 customers. I have just found out that their data entered consumption is wrong for each one. I now have a list of the proper consumption for each customer.This is in acces and excer.

Does anyone know a way of updating all 400 customers in one go rather than writing 400 update sql statements?

Thanks,

Joe
 
Since you have it in Access, why not link the Oracle table to the access database, and then write one update query:

UPDATE MyOracleTable
SET MyOracleTable.Consumption = MyAccessTable.Consumption
WHERE [MyOracleTable].[a/c number] =
[MyAccessTable].[a/c number]

Just a suggestion, Try to name your fields without spaces and slashes and it will make the script writing easier...


Terry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top