473,394 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Dynamic SQL - "MERGE INTO......"

Hi,
Is "MERGE INTO..." statement allowed to be executed in a dynamic SQL
statement, inside an SQL Stored Procedure?

I am using DB2 UDB 8.1.2 on Windows.

If it is not allowed (as I suspect), how do I go about converting an
Oracle Procedure that dynamically executes "MERGE INTO..."?
ONE RESTRICTION: My converted code has to execute faster than the
Oracle SP (everything else being the same).

TIA..................anurag
Nov 12 '05 #1
3 4568
anurag wrote:
Hi,
Is "MERGE INTO..." statement allowed to be executed in a dynamic SQL
statement, inside an SQL Stored Procedure?

I am using DB2 UDB 8.1.2 on Windows.

If it is not allowed (as I suspect), how do I go about converting an
Oracle Procedure that dynamically executes "MERGE INTO..."?
ONE RESTRICTION: My converted code has to execute faster than the
Oracle SP (everything else being the same).


MERGE is allowed, at least I am using it in a procedure that runs on 8.1.6
without any problems.

--
Knut Stolze
Information Integration
IBM Germany / University of Jena
Nov 12 '05 #2
Thanks Knut,
I was able to execute the SP (on 8.1.2) just after I made this post :>)

............anurag

Knut Stolze <st****@de.ibm.com> wrote in message

MERGE is allowed, at least I am using it in a procedure that runs on 8.1.6
without any problems.

Nov 12 '05 #3
Thanks Knut,
I was able to execute the SP (on 8.1.2) just after I made this post :>)

............anurag

Knut Stolze <st****@de.ibm.com> wrote in message

MERGE is allowed, at least I am using it in a procedure that runs on 8.1.6
without any problems.

Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: newbie_mw | last post by:
Hi, I need urgent help with a novice problem. I would appreciate any advice, suggestions... Thanks a lot in advance! Here it is: I created a sign-up sheet (reg.html) where people fill in their...
9
by: Luc Dal | last post by:
Hello, I've serious problem using ASP under WindowsXP sp2. I get the following reply (sorry it's in french) Erreur de compilation Microsoft VBScript error '800a0401' Fin d'instruction...
5
by: Chad Richardson | last post by:
Is there a way in SQL Server 2000 to extract data from a table, such that the result is a text file in the format of "Insert Into..." statements, i.e. if the table has 5 rows, the result would be 5...
1
by: mcmreddy | last post by:
Hello, Is there any advantage of using "MERGE INTO" SQL instead of using "EXISTS" AND "NOT EXISTS" in DB2?. Thanks, --Chandra
5
by: Janick Bernet | last post by:
I'm going crazy trying to write a working merge-statement. Why doesn't the following work: MERGE INTO utSystem.t_Filter_Results AS Res USING (SELECT 9 as clubid, 50 as filterid, ID as MemberID...
2
by: CFW | last post by:
I use the following flawlessly to insert a single field: strSQL = "Insert into (Casket) Values " _ & "(" & conQuote & NewCasket & conQuote & ")" Set db = CurrentDb If MsgBox(NewCasket & " is...
3
by: shifty shaker | last post by:
I've modified sql text and now i'm getting a syntax error that I cannot figure out....anyone? error occurs at the Insert Into line but the entire function is given in case you need it. ---...
3
by: =?Utf-8?B?QWxleCBNYWdoZW4=?= | last post by:
Does anyone know why I have no "Step Into" option during debugging in VS 2005/C# app? I have "Step Over" but no "Step Into" even though it would be stepping into one of my own functions inside the...
6
by: ewpatton | last post by:
Good day, I've been trying to work with SQL and an Access database in order to handle custom user profiles. I haven't had any trouble reading from my database, but inserting new entries into...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.