Parammeter in a SELECT in MS clause, what could be wrong?
HI, I made a sample sp this doen work, I followed exactly how it manuals shows and still cannot do the job.What's wrong with my code, I need to put the setting in FROM clause: (SELECT count (*) from cc from $param02).
I put a few test selects which works very well, but the job of principal still select doen, I played with qoutes and the semicolon in immediate exec, still no luck.
Appreciate you help. MY PC is below.
TX so much.
T
-----------------------------------------------
create or replace
PROCEDURE TEST1 AS
sql_s varchar2 (200);
CC number (3);
param02 varchar2 (40);
BEGIN
SELECT count (*) IN cc FROM tt_dailY_view;
DBMS_OUTPUT. Put_line (' #aaa: ' | cc);
param02: = 'tt_dailY_view ';
SELECT count (*) IN cc FROM tt_dailY_view;
DBMS_OUTPUT. Put_line (' #bbb: ' | cc);
sql_s: =' SELECT count (*) INTO cc FROM ' | param02;
DBMS_OUTPUT. Put_line (' #sql: ' | sql_s);
immediately run sql_s;
DBMS_OUTPUT. Put_line (' #ccc: ' | cc);
EXCEPTION when others then
DBMS_OUTPUT. Put_line (' error: another exception...) ');
END;
The INTO clause is in the EXECUTE IMMEDIATE
create or replace
PROCEDURE TEST1 AS
sql_s varchar2(200);
cc number(3);
param02 varchar2(40);
BEGIN
SELECT count(*) INTO cc FROM dual;
DBMS_OUTPUT.PUT_LINE (' #aaa: '||cc);
param02 := 'dual';
SELECT count(*) INTO cc FROM dual ;
DBMS_OUTPUT.PUT_LINE (' #bbb: '||cc);
sql_s :=' SELECT count(*) FROM '|| param02 ;
DBMS_OUTPUT.PUT_LINE (' #sql: '||sql_s);
execute immediate sql_s into cc ;
DBMS_OUTPUT.PUT_LINE (' #ccc: '||cc);
EXCEPTION when others then
DBMS_OUTPUT.PUT_LINE (sqlerrm);
END;
set serveroutput on;
exec test1;
#aaa: 1
#bbb: 1
#sql: SELECT count(*) FROM dual
#ccc: 1
PL/SQL procedure successfully completed.
VR,
Sudhakar B.
Tags: Database
Similar Questions
-
my adobe handler will not update. Adobe manager displays the updates but won't go further. What could be wrong? There is nothing wrong with my computer, although there may be a setting that needs to change, but I'm guessing.
Try direct updates
https://www.Adobe.com/downloads/updates/
updates CC:
http://prodesigntools.com/Adobe-CC-updates-direct-links-Windows.html
http://prodesigntools.com/Adobe-CC-updates-direct-links-Mac.htmlCC updates of 2014:
http://prodesigntools.com/Adobe-CC-2014-updates-links-Windows.html
http://prodesigntools.com/Adobe-CC-2014-updates-links-Mac.htmlCC updates to 2015:
http://prodesigntools.com/Adobe-CC-2015-updates-links-Windows.html
http://prodesigntools.com/Adobe-CC-2015-updates-links-Mac.html -
I have Photoshop CC but Lightroom CC does not load on my computer. What could be wrong?
I have Photoshop CC but Lightroom CC does not load on my computer. What could be wrong?
The bridge is available as a different Application in the creative Application of cloud
Make sure that the latest version is expanded and you can see applications
Or follow the procedure How to install Adobe Bridge CC "Caveat Lector .
Concerning
Assani
-
What could go wrong with setting text-indent:-9000ems;?
I always value text-indent:-9000ems; whenever I want to hide the text for on-screen presentations and display text for screen readers or any other type of media.
The way I've always done it is by setting the text-indent:-9000ems.
Everything has gone well so far. Rrecently, copy the following code displays unexpected occurs when discovered with live on presentation design:
But now, if I use pixels, the problem goes away:
What could happen?
Why this change in behavior of Dreamweaver?
Thanks in advance,
Rafael
The problem based on the Dreamweaver design view, which does not support many aspects of CSS. Judging by your screenshots, you use Dreamweaver CS6 or earlier. I don't have Dreamweaver CS6 installed, but using - 9000em in the latest version of Dreamweaver CC works in Design mode and Live mode. There have been no improvements in Design view for a long time, so I suspect that the problem is probably also your styles.
The bottom line, however, is this: never rely on the mode of creation, regardless of whatever the version of Dreamweaver that you use.
-
Somewhere along the line, my computer decided to stop the execution of my Media Center. I get an exception error when I start. Oddly enough, this error does not appear whenever I start! Error: the exception unknown software exception (0xe0434f4d) in the location of the application (0x7c812afb). Help, please. I really miss my Media Center! :)
Thank you
Hi NatSmith,-What happens when you try to start the Media Center program?-You get an error message or error at this stage?-Remember to make changes to your computer after that this problem started to happen?Take a look in Event Viewer to see the exact error message associated with this application.See the links below for more information:
Procedure to view and manage event logs in Event Viewer in Windows XP
In the meantime, try the steps listed in the article below:
-
Ideas:
- Error messages
- Recent changes to your computer
- What you have already tried to solve the problem
Remember - this is a public forum so never post private information such as numbers of mail or telephone!
Hello Susan4659,
Thank you for your message. Please see the link below, most likely you're trying to view photos taken with a camera that uses a specific format which is not standard with Photo Gallery.Please let us know if it did or did not help to solve your problem.See you soonEngineer Jason Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.
-
Do not know what could be wrong with my script...
Hello
In a multipage form on all pages have the first name, surname, first FName and LName on the first page is unprotected and open to the entrance but according to FName, LName on other pages are protected ReadOnly with small twist on the names filed as HFName, HLName, AFName, redha...
What I want to do is that the entry on the first page for FName LName to spread on other pages, so I run the following codes on the tab to validate or the FName... LName entered first, and then next to enter field is FName.
=======================================
aInput var = event.value.split(""); make a table divided in space
var sCharacter = ";
Sword of var = ";
for each element of the word table, uppercase the first letter
for (i = 0; i < aInput.length; i ++)
{
aInput [i] = aInput [i] .substr (0, 1) .toUpperCase () + aInput [i] .substr (1) .toLowerCase ();
} / / end of loop for the input string
rebuild the input string with words changed with spaces
Event.Value = aInput.join(' ');
getField("HLName").value = getField("LName").value;
getField("HFName").value = getField("FName").value;
getField("LFName").value = getField("LName").value + ', ' + getField("FName").value;
======================================
HLName is get filled but HFName is empty on the 2nd page and LFName on the third page that was supposed to come out as "Llllllll Ffffffff" comes out as 'Llllllllll,' no FName to the end...
I don't understand why the complete code not running... It is interesting that LName runs only the part of the Validation of the code do not copy it to the other fields.
LName field
The FName field
Let me know if you need more information.
Kind regards
Jeff P...
If I understand correctly, you must replace these two lines:
getField("HFName").value = getField("FName").value;
getField("LFName").value = getField("LName").value + ', ' + getField("FName").value;
By the following:
getField("HFName").value = event.value;
getField("LFName").value = getField("LName").value + "," + event.value;
-
I'm playing a game on facebook, but when I go there to play, it comes up with a message saying that I need to install adobe flash player 12 or later. I installed version 15, but it always stops this message to install version 12 or later. I checked in my control panel, under programs installed and it shows that adobe flash player 15 active x listed. So why don't the game see it? Do I need an older version of adobe flash? Maybe the 12 version, if so where do I find. I tried to find 12 but each site keeps taking me to 15.
I have Windows Vista Home Premium OS. I have Firefox version 32.Firefox uses a different version of the plugin Flash (NPAPI) than IE (ActiveX), so be sure to install the Flash Player for Firefox plugin.
Your list of details of the system with the installed plugins does not show the Flash for Firefox plugin.You can find the latest versions of Flash player for Firefox on this page:
-
I rebooted my tabs pin several times. They disappear just to restart. Any help would be appreciated.
In case you use "clear history of Firefox closing:
- do not erase browsing history
- Tools > Options > privacy > Firefox will be: "Use the custom settings for history": [X] 'Clear history of Firefox closing' > settings
- https://support.Mozilla.org/KB/clear+recent+history
Note that compensation "Preferences of Site" clears all exceptions for cookies, images, windows pop up, installation of software and passwords.
(PIN) App tabs and groups of tabs (Panorama) are stored in session data in the sessionstore.js file in the Firefox profile folder.
If you use a software like CCleaner cleaning then check the settings in the Firefox application.
-
Open a new tab for it (the sign on the far right of the tabs +) does not. How to fix this?
Uninstall the toolbar Ask and it should work again. There is a compatibility issue with the Ask and Firefox toolbar that prevents the opening of new tabs.
-
This is a computer that I use for business - so it is essential that I have copies of the stuff I send.
Any suggestions will be appreciated.
You have apparent dbx file corruption.
Spend most of your messages out of the Inbox and then create new folders to send and sent items box after having moved the messages you want to save to a local folder that you create.
Tools | Options | Maintenance | Store folder will reveal the location of your Outlook Express files. Note the location and navigate on it in Explorer Windows or, copy and paste in start | Run.
In Windows XP, the files of user OE (DBX and WAB) are by default marked as hidden. To view these files in Windows Explorer, you must enable Show hidden files and folders under start | Control Panel | Folder Options icon | Opinion, or in Windows Explorer. Tools | Folder options | View.
With OE closed, find the DBX files for the items in the Outbox and sent and delete them. New ones will be created automatically when you open OE.
After you're done, followed by compacting your folders manually while working * off * and do it often.
Click Outlook Express at the top of the the folder tree so no folders are open. Then: File | Work offline (or double-click on work online in the status bar). File | Folder | Compact all folders. Don't touch anything until the compacting is completed.
General precautions for Outlook Express:
Do not archive mail in the receipt or sent items box. Create your own user-defined folders and move messages you want to put in them. Empty the deleted items folder daily. Although the dbx files have a theoretical capacity of 2 GB, I recommend all a 300 MB max for less risk of corruption.
Information on the maximum size of the .dbx files that are used by Outlook Express:
http://support.Microsoft.com/?kbid=903095Disable analysis in your e-mail anti-virus program. It is a redundant layer of protection that devours the CPUs, slows down sending and receiving and causes a multitude of problems such as time-outs, account setting changes and has even been responsible for the loss of messages. Your up-to-date A / V program will continue to protect you sufficiently. For more information, see:
http://www.oehelp.com/OETips.aspx#3Why you don't need your anti-virus to scan your email
http://thundercloud.NET/infoave/tutorials/email-scanning/index.htmNote that for some AV programs, it may be necessary to uninstall the program and reinstall in custom Mode and uncheck analysis when the option is the result of e-mail messages.
Compact often as specified above.
And backup often.
Outlook Express Quick Backup (OEQB Freeware)
http://www.oehelp.com/OEBackup/default.aspx -
hp6700 premium - it is connected to the wi - fi connection - but don't print - what could be wrong
I try to print but well connected get error message - mentions checking IP address but don't know how?
Hello
You are able to print?
-
When you want to play a downloaded video
Is the video you are trying to read the HD? If it's a 720 p or 1080 p video, it might be several gigabytes in size, and for this to open and buffering for reading you must have enough available memory to do.Are you sure that you do not have high memory use? Press CTRL + ALT + DELETE and choose TASK MANAGER. Make sure that none of the open programs are using large amounts of memory. -
What could go wrong with Dreamweaver CS6 browser Widget
I am trying to enter in the browser Widget (from Dreamweaver CS6) and get me a this two error messages
I also noticed that the https://creative.adobe.com/addons address does not open.
Thanks in advance.
Rafael
The server for the browser widget was taken a few years back. It is no longer available and has been removed from later versions of the program.
You can still get extensions from the page modules https://creative.adobe.com/addons Adobe or third-party developers however.
-
connecting the new host of vmfs - what could go wrong?
I just set up a new server ESXi 4.1, and I want to assign a logical unit number that contains a VMFS (v3.33) data store used by 4 ESXi 4.0 hosts. I did this procedure several times before (no thanks to the combination of versions of the host, though), but I still get nervous.
Is there a chance that something bad could happen to my data store when I connect the new host to it, or it's just my OCD Act?
If you follow the above instructions to Dave, you have nothing to fear - if you take the right approach by being very careful with storage issues.
Changes in versions should make no difference at all, as long as lon as all the ESX host attached to storage support the version of the data that store connect you.
Good luck - and don't stress!
Maybe you are looking for
-
Chargers apple has a warranty on them?
IF I buy a charger from Best Buy, it will be guaranteed? Or do I have to buy it from Apple? Can I get a warranty on this subject if I just bought a charger?
-
Satellite Pro A120: SD card cannot be detected.
Whenever I insert a card SD in my Satellite Pro A120 Windows does nothing, nothing changes, it's as if I don't plug. I found that if I reinstall the driver of SD card while the card is connected, then it will be detected, but windows doesn't detect n
-
Connectivity issues - Toshiba AR5004G G Mini PCI card wireless
I just mounted the card above for my Toshiba A30-203, but I am unable to connect to the internet. I get an error message that I have not adjusted my client adapter and that my IP address has not been set correctly. I don't have any idea what that mea
-
ThinkPad Yoga S1 does not charge on among Dock
When to use the Dock among my trendy not says Yoga in charge. I have provided 65W power brick attached to the OneLink - powerbrick works very well if plug in Yoga. However when connected via OneLink power getting to the laptop is about 8 - 9W, as ind
-
where can I download spider solitaire xp version
where can I find the spider solitaire game and download