I would like to write a SQL Update command that can be run once a year to update a record for each account in an Oracle database based on external values ββobtained in an Excel spreadsheet.
My research so far shows that I can use the OPENROWSET command, but most of the links show that this is used in Excel for MS SQL Server:
INNER JOIN OPENROWSET('Microsoft.Jet.OLEDB.4.0', 'Excel 8.0;Database=C:\foldername\spreadsheetname.xls;', 'SELECT column1name, column2name, column3name, column4name FROM [worksheetname$]') EXT
Can anyone verify that I'm on the right track or is it even better to provide a basic example?
The main logic of Psuedo is as follows: For each record in the USER_DEFINED Oracle table where CODE_FIELD is "CRS" And where I have a value in the spreadsheet with the corresponding account number, update the VALUE field for this record in the Oracle table USER_DEFINED with the content "Value "in the table.
sql excel
Nicole cook
source share