Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 33
Default Creating an Oracle UPDATE Statement from Excel rows

I've been given an Excel spreadsheet with 122 record UPDATEs. I have tried a
CONCATENATE Statement, see below. My one problem is getting the "/" into my
Oracle statements to separate them so that it will properly process the
multiple UPDATE statements.

Can someone help me with this formula??? I'm not sure how to carriage retun
so that the "/" appears in the first column. This is where Oracle wants it
when I copy and paste my values into a SQL Script.

Any help is GREATLY appreciated and Thanks in advance for your review and
hopeful for a reply.

PSULionRP

=CONCATENATE("UPDATE TableName SET ColumnName = ", "'", TRIM(E2), "'", "
WHERE KeyColumn = ", B2,
" /")
  #2   Report Post  
Posted to microsoft.public.excel.misc
dlw dlw is offline
external usenet poster
 
Posts: 510
Default Creating an Oracle UPDATE Statement from Excel rows

use =char(13) to get the CR in.

"PSULionRP" wrote:

I've been given an Excel spreadsheet with 122 record UPDATEs. I have tried a
CONCATENATE Statement, see below. My one problem is getting the "/" into my
Oracle statements to separate them so that it will properly process the
multiple UPDATE statements.

Can someone help me with this formula??? I'm not sure how to carriage retun
so that the "/" appears in the first column. This is where Oracle wants it
when I copy and paste my values into a SQL Script.

Any help is GREATLY appreciated and Thanks in advance for your review and
hopeful for a reply.

PSULionRP

=CONCATENATE("UPDATE TableName SET ColumnName = ", "'", TRIM(E2), "'", "
WHERE KeyColumn = ", B2,
" /")

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a Custom Data Entry Form to Update Multiple Excel Records atOnce Scotty81 Excel Discussion (Misc queries) 0 January 7th 09 08:22 PM
Excel VBA against Oracle Johnson Shine Excel Discussion (Misc queries) 3 January 14th 07 02:05 PM
can a dde link be used to populate excel creating new rows? jpk3535 Excel Discussion (Misc queries) 0 July 25th 06 08:04 PM
Excel Access and Oracle Chris K Excel Discussion (Misc queries) 1 February 17th 06 06:16 PM
How to update ORACLE query definition in Excel file Viks Links and Linking in Excel 0 January 6th 06 02:56 PM


All times are GMT +1. The time now is 05:53 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"