Problem in SQL with CURSOR( ) ,Why the CURSOR did not work?
hi All:
I have a problem in SQL with CURSOR.
The data is as the attachments.
Here is the SQL statement as follow:
SELECT A.WADCTO,A.WADOCO,B.IGCOST,CURSOR (SELECT X.IGLITM
FROM F3102 X
WHERE X.IGDOCO=A.WADOCO
AND X.IGCOST IN ('B1','D1','C3')) AS DETAIL
FROM F4801 A INNER JOIN F3102 B ON A.WADOCO=B.IGDOCO AND A.WADCTO=B.IGDCTO AND B.IGCOST>' '
WHERE A.WADOCO='10004'
The statement above returns records as follow:
WADC WADOCO IGCOST DETAIL
WO 10004 A1 CURSOR STATEMENT : 4
CURSOR STATEMENT : 4
IGLITM
1KV90CPG2
1KV90CPG2
1KV90CPG2
But, after I add one statement in the subquery, there is no record returned from CURSOR.
Here is the SQL statement:
SELECT A.WADCTO,A.WADOCO,B.IGCOST,CURSOR (SELECT X.IGLITM
FROM F3102 X
WHERE X.IGDOCO=A.WADOCO
AND X.IGCOST=B.IGCOST
AND X.IGCOST IN ('B1','D1','C3')) AS DETAIL
FROM F4801 A INNER JOIN F3102 B ON A.WADOCO=B.IGDOCO AND A.WADCTO=B.IGDCTO AND B.IGCOST>' '
WHERE A.WADOCO='10004'
The statement above returns records as follow:
WADC WADOCO IGCOST DETAIL
WO 10004 A1 CURSOR STATEMENT : 4
CURSOR STATEMENT : 4
no rows selected
Why the CURSOR did not work?
The database version is Oracle Database 10g Release 10.2.0.4.0 - 64bit Production.
F3102 DATA:
IGDOCO IGDCTO IGLITM IGCOST
10004 WO 1KV90CPG2 A1
10004 WO 1KV90CPG2 B1
10004 WO 1KV90CPG2 C3
10004 WO 1KV90CPG2 D1
F4801 DATA:
WADCTO WADOCO
WO 10004
Edited by: user2319139 on 2010/3/2 上午 1:17
Edited by: user2319139 on 2010/3/2 上午 1:20
Why this structure and not a join?
The cursor() function returns a cursor handle that needs to be processed - in other words, the client needs to fetch data from it. The Oracle® Database SQL Reference+ (http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/expressions005.htm#i1035107) describes it as being equivalent to a ref cursor handle.
Thus why are you creating ref cursor handles as a column in a SQL projection - where each row will have a "+nested+" ref cursor handle to process. What problem are you attempting to hack solve this way?
Similar Messages
-
vine.co can not watch videos on other browsers do not have the problem with firefox firefox there just did not work, delete cookies, history
I think this problem may be caused by Yahoo's changes making it incompatible with the klatest version of FireFox.
This is suddenly affecting many many people who use Firefox and are members of Yahoo Groups. All these people say they themselves changed nothing and have not been locked out before when using Firefox. But suddenly, within the last week, they are.
What did Mozilla do or what did Yahoo do to cause this problem? I can say that I was not blocking cookies and after trying a number of things to fix it, I went to Yahoo's home page and navigated to my group from here.
This problem is not anything a user did. Either Firefox is at fault or Yahoo is. I want to know which company is at fault and when they are going to fix it. -
I have the iPad 2 16GB, bought it in August 2011, I worked perfectly but in mid-August 2012 I took her to the store because the microphone did not work reviewed and changed me, but to my surprise that the new iPad had the problem is disconnected WIFI signal I have to be glued to the router, and I did everything he says is supported by the Apple and all other pages and forums regarding this problem is not solved and always disconnects when connected always disconnects again!! passing will be settled as no longer factory warranty although it has neither the three months I renewed new, please help because the investment has been great and I can not use only as "a mirror" I'm waiting a true solution, thanks ....
Sincerely,
CatlosThis does help me because I am pondering on wether to buy an airport extreme to solve my ipad 2 connection woes. I have an extremely old router dLink 524....but I have NEVER had any problems with it at all ever. My xbox connected great to it and netflix ran flawless through my xbox.....now I have an ipad2 and an apple tv and they are BOTH having horrible connection problems. I have read most of the forums on how to fix it by changing the settings on my router but since mine is so old I couldn't do some of the suggested solutions. So here I am debating on whether to spend all this $ on an airport extreme? I am just hoping that if I go and purchase this, my connectivity issues problems will go away like yours did. Just wondering if you have ATV as well and if the AE solved its problems? I have read about AE solving ipad2 wifi problems, I'm just hoping it will solve my ATV as well.
**Glad they didn't "moderate into extinction" your post yet, lol, Thank -
I just fix my macbook air because it was kernel panic. They changed the hard drive. I could not back up with Time Machine, because it did not work and I had over Adobe creative suite 5 design premium student. But I finished my studies last year and I'd like to know how to get the serial number for me to reinstall Adobe creative suite 5 design premium when I am no longer study because I would still like the used? It is not fair if I do anymore because I really need.
You can download Creative Suite 5 here:
Other downloads
To deal with the issue of the serial number and using it again, you'll have to use Web Chat. Here's a link:
Adobe ID, sign in, and account help
See the bottom of the page for a link -
updated my ipad with ios7 but the keyboard does not work its slow when i hit the letters does not click did not do this until i updated anyone can help me on this to fix it
Settings>General>Reset>Reset All Settings
-
I attempted to perform the itunes update on two different PCs. Itunes will no longer open and prompted me to reinstall itunes. The reinstall did not work after several attempts and I received an error: "Runtime error R6034. An application has made an attempt to load the C Runtime library incorrectly. Please contact the application's support team for more information." Has anyone else had this issue? How can I resolve it?
I've been having the same exact problem this morning, and from the looks of it a lot of other people are posting about this issue, so I don't know if it's maybe something wrong with the download but I'm just relieved that it seems to be that instead of a corruption issue with my windows installation. I'm just wondering how long this will take to be resolved.
-
Hi - I created a form in Adobe Livecycle and have a button on it to send the form via email. the button did not work and i looked online and saw where you could change it to a regular button and enter the email for it to go. it worked, but only for those with adobe pro. i could not get it to work with reader. is there a way i can make it work for reader?
Noted.
The LiveCycle user to user forum is across town at:
Adobe LiveCycle
Be well... -
When iam using jdownloader for dowload, the firefox did not work at any page, as like`` there in no internet conexion?``
you need to check whether '''jdownloader''' is compatible with the Firefox version you are using.
-> Tap ALT key or press F10 to show the Menu Bar
-> go to Tools Menu -> Add-ons -> Extension section -> check the Status of '''jdownloader''' extension -> if '''an update''' is available for this add-on then install the update -> Restart Firefox and check again check the compatibility -> if it is '''GREYED with Exclamation mark''' then it is incompatible with Firefox
Try using this extension to force compatibility.
https://addons.mozilla.org/en-US/firefox/addon/add-on-compatibility-reporter/
Check and tell if its working. -
I bought creative suite cs6 standard student and teacher edition and the download did not work properly - files appear incomplete/ or damaged. File size seems very small for a product of this size. Can you assist with download issue or provision of software ?
Lalalaladog where did you download CS6 from? I would recommend downloading the installation files for Creative Suite 6 Design Standard at Download CS6 products
-
i have rented a movie in thru apple tv and i wasn't able to watch it because the sound did not work can i get my money refund so i can rerent it
Welcome to the Apple community.
Select the content which is causing a problem and use the 'Report a problem' button in Your Purchase History. -
Adobe said to ask you guys what to do. One of the support personel gave me a link to cs3. The link did not work.
I bought a new computer and tried to transfer it.
What does this mean exactly?
If you are looking for the installer you should be able to get them from this site (if you follow the instructions):
Download Adobe CS4 and CS3 Free Trials Here (incl. After Effects) | ProDesignTools -
My iPhone got wet.. The phone is working except the home button but Siri is working.. I had also added the assistant touch but in that also the button did not work.. So what should I do???
The phone is damaged. Take it in to an Apple Store or authorized service provider. More than likely you will have to pay for an out of warranty replacement.
-
HT1414 the microfone did not work
the micrfone did not work ,the another user did not hear me.
What ID would that be, exactly?
-
Please be informed me... with my battery or charger problems....
my iPad 2 charger is not working....
since I've got it for five days ago, I only use it for three times....
Are they going to replace it with a new one ?Most likely yes. There's a manufacturers warranty against defects for a year. I'd contact your place of purchase and talk to them about it.
-
Hi guys
Trying to run this package on SQL 2012 agent and getting below error . No more details I could find so far.
The step did not generate any output. The return value was unknown. The process exit code was -1073741819. The step failed.
About Package - Its connecting to different version (2000,2005,2008,2008R2,2012) servers and putting Jobs information into one Database table.
Any workaround or fix ?
Thanks
Please Mark As Answer if it is helpful. \\Aim To Inspire Rather to TeachNew package or one that used to work? Connecting how? How does it poll?
On the surface it is an error from a memory space of the binary/non-managed code, so nothing can be really concluded based on what you decided to share with us.
Arthur My Blog
So Same package is working fine from my local machine which has SQL 2008 R2 and SQL 2012 installed. I am trying to push the package on server which has sql server 2012 Installed .
I don't see any error .
I ran package manually from server using SQL Data tools and ran successfully...
Please Mark As Answer if it is helpful. \\Aim To Inspire Rather to Teach
Maybe you are looking for
-
Addition of line item values in KP06
Friends, We are using LSMW to load cost center planning for KP06. My user wants to know if he can give same cost center and cost element combination twice in the excel file with different values and will LSMW totals up the values. Usually it will ove
-
Massive Visualization Payslip HRFORMS
Hi Gurus, I have the following issue when trying to visualizate all the payslip within a payroll area. On one hand, I'm using the program H99_HRFORMS_CALL to print all the payslips, the problem is that is not posible to see in the screen all the pays
-
CPIC-CALL: 'ThSAPCMRCV' : cmRc=17 thRc=244
Hi All, I am getting the below short dump for Remote function call. I do not know the target system. I would like to know the process through which I can know the target system from the dump. I only have the short dump with me and want to know the po
-
The two screen captures below show the problem I'm encountering.
-
Hi, I got a brand new 15" MacBook Pro a week or so back and had problems with the trackpad - when I tap to select an item the mouse pointer "bounces" off the item I'm trying to select. It happens randomly - not every time. Very irritating. Supplier g