Compilation Error in stored Proc !! Please help
Hi,
This is my stored procedure , it is giving error at line 20 . The error description is : ERROR line 20, col 1, ending_line 20, ending_col 6, Found 'ELSEIF', CASE is expected
CREATE OR REPLACE PROCEDURE proc_MDM_GetCountry_tst
Exist IN INTEGER,
Search IN VARCHAR2,
Country_c OUT SYS_REFCURSOR
AS
BEGIN
IF Exist IS NOT NULL AND Search IS NOT NULL THEN
OPEN Country_c FOR SELECT
MDM_CODE,MDM_MASTER_CODE,MDM_DESCRIPTION,
MDM_USER,MDM_EXIST,MDM_STATUS,MDM_ACTION,DAT_INSERT_DATE,
DAT_INSERTED_BY,DAT_MODIFY_DATE,DAT_MODIFIED_BY
from MDM_COUNTRY_MASTER WHERE MDM_EXIST = Exist and MDM_STATUS='approved' AND MDM_DESCRIPTION LIKE '%'+Search+'%';
ELSEIF Exist IS NULL AND Search IS NOT NULL THEN (Error line 21)
OPEN Country_c FOR SELECT
MDM_CODE,MDM_MASTER_CODE,MDM_DESCRIPTION,
MDM_USER,MDM_EXIST,MDM_STATUS,MDM_ACTION,DAT_INSERT_DATE,
DAT_INSERTED_BY,DAT_MODIFY_DATE,DAT_MODIFIED_BY
from MDM_COUNTRY_MASTER WHERE MDM_STATUS='approved';
ELSEIF Exist IS NOT NULL AND Search IS NULL THEN
OPEN Country_c FOR SELECT
MDM_CODE,MDM_MASTER_CODE,MDM_DESCRIPTION,
MDM_USER,MDM_EXIST,MDM_STATUS,MDM_ACTION,DAT_INSERT_DATE,
DAT_INSERTED_BY,DAT_MODIFY_DATE,DAT_MODIFIED_BY
from MDM_COUNTRY_MASTER WHERE MDM_STATUS='approved' and MDM_EXIST = Exist;
ELSE
OPEN Country_c FOR SELECT
MDM_CODE,MDM_MASTER_CODE,MDM_DESCRIPTION,
MDM_USER,MDM_EXIST,MDM_STATUS,MDM_ACTION,DAT_INSERT_DATE,
DAT_INSERTED_BY,DAT_MODIFY_DATE,DAT_MODIFIED_BY
from MDM_COUNTRY_MASTER WHERE MDM_STATUS='approved' AND MDM_EXIST = 1;
END IF;
END proc_MDM_GetCountry_tst;
Could any of you geeks please help me. I am new to oracle PL/SQL development. I used to work on SQL Server 2005 earlier.
Thanks for your help.
Edited by: user11342315 on Jul 2, 2009 10:00 PM
ELSEIF should be ELSIF.
See the documentation: http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/if_statement.htm#LNPLS01324
Regards,
Rob.
Similar Messages
-
Compilation Error while using string (Please help)
Hi,
I am using "Sun WorkShop Compiler C++ SPARC Version 5.000". Compiling code which contains a "string variable" throws the following error:
"/opt/WS5/SC5.0/include/CC/./new", line 32: Error: The prior declaration for ope
rator new(unsigned) has no exception specification.
"/opt/WS5/SC5.0/include/CC/./new", line 34: Error: The prior declaration for ope
rator delete(void*) has no exception specification.
"/opt/WS5/SC5.0/include/CC/./new", line 36: Error: The prior declaration for ope
rator new[](unsigned) has no exception specification.
"/opt/WS5/SC5.0/include/CC/./new", line 38: Error: The prior declaration for ope
rator delete[](void*) has no exception specification.
4 Error(s) detected.
The command used for compilation is :
/opt/WS5/bin/CC -compat=4 -I/opt/WS5/SC5.0/include/CC -features=%all try.cpp
Would help if I could get some comments on the above.
Thanks and Regards,
M ShettyThere is a requirement that I use the Workshop 5.0
compilere with option "-compat=4".
The program I am trying to compile contains:
#include <string>
int main()
string test = "aaa";
return 0;
There is no "string" in "-compat=4". You need to
do something like this:
// --- start test.cc ---
#include <rw/cstring.h>
int main()
RWCString test = "aaa";
return 0;
// --- end test.cc ---
CC -compat=4 -library=rwtools7 test.cc -
HT5642 Unable to download app this time error while downloading app please help!!!
when i download some app from apps store i get the following error
"Unable to download app this time error while downloading app" please help!!!
i ve tried these Things but
didnt workout yet
1) i tried hard reset
2)i tried logout/login Itune & appstore
3)Connected to pc and rest setting Network and Full Rest
all of no use... i dont want to update my softwre from IOS 6.0
Plx help!1Hey Prahaladvatsan,
Thanks for the question. If I understand correctly, there is a blank app icon on the home screen. It looks like you have already done some troubleshooting. I would recommend that you read these articles, they may be helpful in troubleshooting your issue.
Restart or reset your iPhone, iPad, or iPod touch - Apple Support
Back up and restore your iPhone, iPad, or iPod touch using iCloud or iTunes - Apple Support
Thanks for using Apple Support Communities.
Have a good one,
Mario -
My compouter (PC) no longer recognizes my ipod (4th gen), it "sees" an unknowndevice and gives me error code 43. Please help.
Check for hardware issues
Try to restore your iOS device two more times while connected with a cable, computer, and network you know are good. Also, confirm your security software and settings are allowing communication between your device and update servers. If you still see the alert when you update or restore, contact Apple support.
Common errors: 1, 10-47, 1002, 1011, 1012, 1014, 1000-1020.
If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
Apple Retail Store - Genius Bar -
my macbook pro (10.6.8) refused to install wireless printer (canon pixma MG4260). Whenever i tried to install, it keeps saying 'internal error number 12'. Please help me!! and what does internal error got to do with installing a printer?
my macbook pro (10.6.8) refused to install wireless printer (canon pixma MG4260). Whenever i tried to install, it keeps saying 'internal error number 12'. Please help me!! and what does internal error got to do with installing a printer?
-
Hi. I forgot my passcode and now I am unable to unlock my ipod. I tried restoring it using itunes in recovery mode as well as dfu mode but it says unable to restore,unknown error occured (3004). Please help me out. My ipod is locked for one hour now.
Locked Out, Forgot Lock or Restrictions Passcode, or Need to Restore Your Device: Several Alternative Solutions
1. iOS- Forgotten passcode or device disabled after entering wrong passcode
2. iPhone, iPad, iPod touch: Wrong passcode results in red disabled screen
3. Restoring iPod touch after forgotten passcode
4. What to Do If You've Forgotten Your iPhone's Passcode
5. iOS- Understanding passcodes
6. iTunes 10 for Mac- Update and restore software on iPod, iPhone, or iPad
Forgotten Restrictions Passcode Help
You will need to restore your device as New to remove a Restrictions passcode. Go through the normal process to restore your device, but when you see the options to restore as New or from a backup, be sure to choose New.
Also, see iTunes- Restoring iOS software. -
how to fix this: The iphone "iPhone" could not be restored. An unknown error occurred (3014). Please help me
Read here:
http://support.apple.com/kb/ts3694#3014 -
Error install illustrator cc please help!!
error install illustrator cc please help!!
Eli,
This may be one for this specialized forum (where you may be able find the answer from previous threads),
http://forums.adobe.com/community/download_install_setup
or for Customer Care (tick I Still Need Help and hope for an agent available for a chat),
http://helpx.adobe.com/contact.html?product=illustrator&topic=downloading-installing-and-s etting-up
or for Adobe Support (phone),
http://helpx.adobe.com/adobe-connect/adobe-connect-phone-numbers.html -
I have Mac Pro 2010 model and it's giving heavy fan noise,so run the Apple hardware test but it's showing the Error: 4SMC 1 40000000 please help me in this issue.
Same error information here.
https://discussions.apple.com/message/13083664?messageID=13083664 -
Hello, I have downloaded the new update to my iPhone 4 but I can not instal it , gives me a error signs would you please help me thank you. Nasser
Please identify the error.
-
windows thinks my itouch is a camera and itunes says this ipod can't be used because the software isn't installed - reinstall itunes. i've done that and continue to get the same error. can someone please help?
(apologies for barging in, lllass.)
Let's try a standalone Apple Mobile Device Support install. It still might not install, but fingers crossed any error messages will give us a better idea of the underlying cause of why it's not installing under normal conditions.
Download and save a copy of the iTunesSetup.exe (or iTunes64setup.exe) installer file to your hard drive:
http://www.apple.com/itunes/download/
Download and install the free trial version of WinRAR:
http://www.rarlab.com/download.htm
Right-click the iTunesSetup.exe (or iTunes64setup.exe), and select "Extract to iTunesSetup" (or "Extract to iTunes64Setup"). WinRAR will expand the contents of the file into a folder called "iTunesSetup" (or "iTunes64Setup").
Go into the folder and doubleclick the AppleMobileDeviceSupport.msi (or AppleMobileDeviceSupport64.msi) to do a standalone AMDS install.
(If it offers you the choice to remove or repair, choose "Remove", and if the uninstall goes through successfully, see if you can reinstall by doubleclicking the AppleMobileDeviceSupport.msi again.)
Does it install (or uninstall and then reinstall) properly for you? If so, does your device connect without that message now? -
i keep getting you do not have enough privileges when opening itunes as well as error 1201 can someone please help?
See Here for Troubleshooting
Free Disc Space
http://www.thexlab.com/faqs/freeingspace.html
See Here for Resolving Startup Issues
http://support.apple.com/kb/ts1417 -
i am having problem when i am updating my iphone 4 to ios 5 ..it get update n took 50 minutes then at the end when it was processing file ...suddenly an error comes that an unknown error accurred {9006}..please help me..how will i update my iphone 4
Error 9006: Following Troubleshooting security software frequently resolves this error. There may be third-party software installed that modifies your default packet size in Windows by inserting a TcpWindowSize entry into your Registry. Your default packet size being set incorrectly can cause this error. Contact the manufacturer of the software that installed the packet size modification for assistance.
-
Hi.my itunes appear this error ERROE CODE:1009 please help me
hi.my itunes appear this error ERROE CODE:1009 please help me
Read my post. I don't know if you're having the same problem but I hope this helps. http://discussions.apple.com/thread.jspa?threadID=1351705&tstart=0
Message was edited by: Happyfish -
I could not be updated my iphone4. An unknown error is occurred(6). please help me to resolve this problem
Errors related to third-party security software
Error 2, 4 (or -4), 6, 1000, 9006
Follow Troubleshooting security software. Often, uninstalling third-party security software will resolve these errors.
There may be third-party software that modifies your default packet size in Windows by inserting a TcpWindowSize entry into your registry. Your default packet size being set incorrectly can cause these errors. Contact the manufacturer of the software that installed the packet size modification for assistance or follow this article by Microsoft: How to reset Internet Protocol (TCP/IP).
Verify that access to ports 80 and 443 are allowed on your network.
Verify that communication to albert.apple.com or phobos.apple.com is not blocked by a firewall, or other Internet security setting.
Discard the .ipsw file, open iTunes and attempt to download the update again. See the steps underAdvanced Steps > Rename, move, or delete the iOS software file (.ipsw) below for file locations.
Restore your device while connected to a different network.
Restore using a different computer.
Maybe you are looking for
-
What do I do when the iPod touch asks to be plugged into it ouch and nothing happens. The PC asks to use password on iPod touch and it can't be done.
-
Hi Experts, Screen Variants are not working correctlyi.e. the variant is not getting activated for the specified user ids. Fews days back, the variants were working properly. I have created variants for tcode FB60, FV70 etc. and have transported them
-
ITunes 11.3.1 not responding when trying to sync first generation iPod touch
Hi, I just updated my iTunes to 11.3.1 and now I cannot sync my first generation iPod touch. It gets to step 4 of 4 (syncing music) and on the first song iTunes stops responding. I have a Mac. Please can someone help me on how i can get my iPod to sy
-
i phone 3 shuts down after 3 to 4 mins when making a call - then large apple sign apeers phone frozen - only way to unlock is to re charge although there is enough battery - any answers would be welcome.
-
BizTalk Published Web Service unable to consume, Token-Based Server access validation error
Hi, We have developed a BizTalk application and we have published as web service, but when we are trying to consume the application we are getting the an error and its logged in event log. While deploying we have allowed Anonymous user access for the