How to insert the value of the variable using select statement - function Oracle
HelloI have a function that inserts the record based on a condition
INSERT IN the case
(
Case_ID,
Case_Status,
Closure_Code,
Closure_Date
)(
SELECT newCaseID,
caseStatus,
Closure_Code,
Closure_Date,
CASE
WHERE Case_ID = caseID
);
Now, I want the new value casestatus instead of value caseStatus select statement. I have a m_caseStatus variable and I want to use the value of this variable in the select statement above.
How can I use this.
Thank you
INSERT INTO Case
(
Case_ID,
Case_Status,
Closure_Code,
Closure_Date
)(
SELECT newCaseID,
m_caseStatus, <-- here place your variable
Closure_Code,
Closure_Date,
FROM Case
WHERE Case_ID = caseID
);
Nicolas.
Tags: Database
Similar Questions
-
How to give a value to a variable that is defined by the user for the use in my statement
Hai All
I declared a variable
declare
In_time varchar2 (25);
out_time varchar2 (25);
then I wrote a so other logic and this is my encoding
Start
go_block ('TEST_SRI');
PREMIER_ENREGISTREMENT;
LOOP
If: bartime between 0145 and then 0630
Update dail_att set = outtime: bartime where barcode =: bar code
and ATTEND_DATE =: BARDATE-1 and in_time is set to null and out_time is not null;
elsif: bartime between 0630 and 0900 or: bartime between 1130 and 1230 or
: bartime between 1700 and 1800 and in_time is null then
insert into dail_att(barcode,intime,attend_date)
values(:Barcode,:Bartime,:bardate);
elsif: bartime > 1645 and t_in is not null and out_time is null then
Update dail_att set = outtime: bartime where barcode =: bar code
and ATTEND_DATE =: BARDATE and respondent are not null and outtime has the value null.
I need to know how can I give the values of these variables if I use the variable in my statement
If it is possible by using the slider Pls tell me the steps to solve my problem
and while I will carry out my loop it get only half of my files what is wrong.
Concerning
Srikkanth.MYour question seems to relate to Oracle Forms, which has its own forum of OTN.
But as it comes to PL/SQL I will make a comment... Unfortunately this comment is that in reading your post, I don't know what you're asking.
You wrote: "I need to know how can I give the values of these variables if I use the variable in my statement.
What variable? Why don't you use a duty with: = as you obviously already know how to do?
An example would be very useful.
PS: Always display product names and version numbers.
-
HOW to: Insert the symbol of the degree in text
An another "How To" question.
Running PE 13.1 on a Windows PC with WIN 7 64-bit.
How to insert the symbol of the degree in text - I would like to have something like "temperature + 2 < degree symbol > water C.
where < degree symbol > is the small circle (triggered).
I found how to insert copyright (Alt + 0169) & the Tilde (Alt + 126) helped by Wikipedia, but the Windos ciode for the degree symbol is not shown - just the
Unicode U + 2103 but Alt + 2103 just inserts a '7'.
HEM
HEM
If you have the copyright © symbol to work for you with Alt + 0169, I think Alt + 0176, you should get the degree symbol as in 32 °.
If please give it a try in the Titler, open Premiere Elements and let us know if it worked for you.
Thank you.
RTA
-
How to remove the variable created when using definedNamedWhereClauseParam()
Hello
My Jdev version 11.1.1.7.0.
I'm Executive where clause programatically where I need to bind two bind parameters under certain conditions. Example, I have two bind variables X, Y.
Here's the problem:
Assume that the first time I'm setting one variable X, so I define X bind variable and execute the query.
What second time I send only Y but not X. In this implementation of the scenario of VO throw an exception, given that the variable X is already created in the VO object and where clause does not have this setting.
So how to remove variables created in the original Version all in definedNamedWhereClauseParam(). I need to erase what ever the previously created variable every time I execute method.
I can make the similar functionlity using setWhereClauseParam (using literals). But I have a few technical restrictions for use.
Could you please help me how to remove the variable before vo using definedNamedWhereClauseParam.
Caused by: java.sql.SQLException: try to set a parameter name that does not intervene in the SQL: itemNumber
at oracle.jdbc.driver.OraclePreparedStatement.setObjectAtName(OraclePreparedStatement.java:15969)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.setObjectAtName(OraclePreparedStatementWrapper.java:911)
at weblogic.jdbc.wrapper.PreparedStatement_oracle_jdbc_driver_OraclePreparedStatementWrapper.setObjectAtName (unknown Source)
at oracle.jbo.server.OracleSQLBuilderImpl.bindParamValue(OracleSQLBuilderImpl.java:4669)
at oracle.jbo.server.BaseSQLBuilderImpl.bindParametersForStmt(BaseSQLBuilderImpl.java:3687)
at oracle.jbo.server.ViewObjectImpl.bindParametersForCollection(ViewObjectImpl.java:22742)
at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:1298)
... more than 96
Thank you.
-Diette.
Published by: Vidya Diette on February 28, 2013 08:43Hello
You need access to the variable Manager. Order of reading in the JavaDocs:
http://docs.Oracle.com/CD/E28389_01/apirefs.1111/e10653/Oracle/JBO/ViewObject.html--> http://docs.oracle.com/cd/E28389_01/apirefs.1111/e10653/oracle/jbo/VariableManagerOwnerBase.html#getVariableManager%28%29--> http://docs.oracle.com/cd/E28389_01/apirefs.1111/e10653/oracle/jbo/VariableValueManager.html--> http://docs.oracle.com/cd/E28389_01/apirefs.1111/e10653/oracle/jbo/VariableManager.html#removeVariable%28java.lang.String%29
Frank
-
How to call the variables of the scene inside movieClips
How to call the variables of the scene inside movieClips
One way would be to use "MovieClip (root)" to target variables in the main timeline... MovieClip (root) .someVariable = someValue;
-
How to remove the list item empty forms of oracle?
Hello
How to remove the list item EMPTY forms of oracle?
I create two list items
(1) basic
(2) advanced
But when I select list or display the runtime display form element 3 element EMPTY automatically, but I add what it shows I want to delete! How?
He has named REQUIRED = NO item property
If you set YES and then it does not show. but you must give an initial value.
Hamid
-
I think I bought the latest version of Airport Extreme. It is the unit which is rectangular, is about 6 to 7 w., etc. I have some basic questions that I do not understand:
1. How will I know if I have the latest firmware for this device? I read a few posts that make it sound as if it was just automatically updates. Is this true?
2. can someone tell me how to change the password used to connect to my wireless network?
Thank you very much!
Chris
If a firmware update is available, AirPort Extreme flashes orange.
The most up-to-date version of the firmware is 7.7.3.
You can see what version you currently have the following on your Mac...
Open Finder > Applications > utilities > AirPort Utility
Click on the image of the AirPort Extreme
Look for the Version
If the new firmware was available, you will see a button update here
To change the wireless network password...
Click on edit in the window smaller than you watched just to check the firmware version
Click on the Wireless tab at the top of the next window
Go back / change the wireless password and enter a new password
Do the same thing to check
Click Update at the bottom right of the window and give the airport a minute full for restart
-
How to change the rendering used for video playback in Windows Media Center Version 6 engine
I usually use other media players, but I would like to first of all using Windows Media Center. However for the moment video playback is not good because of the weird colors (everything is displayed in black and Red instead of normal colors). When you use other media players, I use the Haali rendering engine which gives good results for video playback.
Can you tell me how to change the rendering used by Windows Media Center?
Also, I noticed the same weird color effect in Windows Media Player 11.
Hi Woobee,
1. What is the brand and model of the computer?
2. what graphics card use on the computer?
If you are using an Nvidia graphics card on the computer, in the Nvidia Desktop Manager, you will find an option for saturation to ensure it is set to 100%.
And if you are any other graphics card on the computer and search for a similar option for saturation.
If the previous step fails in Windows media player, so be sure that the hue and Saturation are defined by default.
1. click on the arrow on the tabplaying , point to enhancements, and then clickcolor picker.
2. do one of the following:
1. to return to the default color, click thereset link.
Also, make sure that the video settings are set by default.
1. start the playback of a file.
2. click on the arrow on the tabplaying , point to improvements, and then clickvideo settings.
3. click onreset.
Check also in Windows Media Center if the
1. on theStart screen, go to tasks, click settings, clickgeneral, then Visual and sound effects.
2. undercolors ensure that Windows media center standard is enabled.
Turn off Visual and sound effects in Windows Media Center
I hope this helps!
Halima S - Microsoft technical support.
Visit ourMicrosoft answers feedback Forum and let us know what you think.
-
How to start the database using CRS to start the database instance
Dear Experts,
How to start the database using CRS to start the database instance
As a solution: remove the write permission on the/etc/oratab user database to prevent update to arrive.
There is no harmful effects known to CRS / RDBMS operation if this workaround solution is used. This has been discussed in Bug 13028802.
-
How to know the tables used in packages of a schema.
How to know the tables used in packages of a pattern that I have connected.
SELECT DISTINCT referenced_owner, referenced_name
Of all_dependencies
Owner WHERE = "MY_USER_NAME".
AND type ('PACKAGE', 'BODY of PACKAGE')
AND referenced_type = 'TABLE '.
-
How to identify the fonts used in text format?
How to identify the fonts used in text format?
Hi DSB.
Open the document in Reader, go to the menu file-> properties, then click on the tag are. You will see a list of the fonts used in the document.
Another option is to copy the text and paste it into MS Word, where you can simply move your mouse over the text to display the name of the font.
Kind regards
Nicos
-
How to change the default "/" shortcut (select 'none' in the shade of color) to something different? Where can I find this in keyboard shortcuts?
Any ideas?
In the Tools menu:
"Apply no color."
-
How to know the database uses pfile or spfile?
Hi guru
How to know the database uses pfile or spfile?
Thank youThank you for this question of doc!
Please type in sql * show spfile parameter.
If it is empty, you do not use a spfile.--------------
Sybrand Bakker
Senior Oracle DBA -
How to count the number of columns in an oracle table using sql
How to count the number of columns in an oracle table using sqlYou must put the name of the table in capital letters
As
SELECT COUNT(1) FROM user_tab_columns WHERE table_name = 'EMP'; or SELECT COUNT(1) FROM user_tab_columns WHERE table_name = UPPER('Emp');
Concerning
Arun -
How to pass the e: MouseEvent to another function?
How to pass the e: MouseEvent to another function?
public void onObjectFound(e:MouseEvent):void
{
var e = e:MouseEvent;
e.currentTarget.removeEventListener (MouseEvent.CLICK, onObjectFound);
var myTween:TweenLite = new TweenMax (e.currentTarget, 1, {scaleX:e.currentTarget.scaleX * 1.5, scaleY:e.currentTarget.scaleY * 1.5, onComplete:deleteObj});})
function deleteObj (): void
{
removeChild (DisplayObject (e.currentTarget));
deleteObjects (e.currentTarget.name);
dispatchEvent (new Event (Event.COMPLETE));
}
}ArgumentError: Error #2025: the supplied DisplayObject must be a child of the caller.
at flash.display::DisplayObjectContainer/removeChild()
to Function / com.enachedragos:Load_Objects/onObjectFound/com.enachedragos:deleteObj() [s\Blackcode\Desktop\Android game Project\com\enachedragos\Load_Objects.as:39 C:\User]
service / http://adobe.com/AS3/2006/builtin: applies ()
at com.greensock.core::TweenCore/complete() [C:\Users\Blackcode\Desktop\Android game Project\com\greensock\core\TweenCore.as:177]
at com.greensock::TweenMax/complete() [C:\Users\Blackcode\Desktop\Android game Project\com\greensock\TweenMax.as:779]
at com.greensock::TweenMax/renderTime() [C:\Users\Blackcode\Desktop\Android game Project\com\greensock\TweenMax.as:761]
at com.greensock.core::SimpleTimeline/renderTime() [C:\Users\Blackcode\Desktop\Android game Project\com\greensock\core\SimpleTimeline.as:79]
at com.greensock::TweenLite$/updateAll() [C:\Users\Blackcode\Desktop\Android game Project\com\greensock\TweenLite.as:629]never nest named functions.
You can use:
public void onObjectFound(e:MouseEvent):void
{e.currentTarget.removeEventListener (MouseEvent.CLICK, onObjectFound);
var myTween:TweenLite = new TweenMax (e.currentTarget, 1, {scaleX:e.currentTarget.scaleX * 1.5, scaleY:e.currentTarget.scaleY * 1.5, onComplete:deleteObj,onCompleteParams:[e.currentTarget]});})}
function deleteObj(dobj:DisplayObject):void
{
dobj.parent.removeChild (dob);
not sure that what follows is logical
dispatchEvent (new Event (Event.COMPLETE));
}
Maybe you are looking for
-
USB plays is not in the car after that put 9.3.4 at level
I have an IPhone 6 and own a 2010 ford fiesta. After upgrading to IOS 9,34 I can't read podcasts or music through the car radio with USB cable, radio do not even recognize the phone is plugged in, although it will charge the phone and play via Blueto
-
Update to Windows 7 - BIOS question - Satellite A350-13 has
Hello I have the Toshiba A350-13 has, for the Poland.It came with Vista 32 bit system. I would like to install Windows 7 64 bit. So I have a question for the BIOS update.In my section of driver model toshiba for WIN7 there is only a 32-bit operating
-
Download home basic System [operating system Windows 7 for my laptop hp pavilion 1118tx g6
My window has been courrpted and I have a house window Mobile 7 (hp pavilion 1118tx g6) core license. Can anyone suggest me where I can download the software instalation window 7 Home Basic... Thank you
-
Web authentication passthrough with input from the e-mail
Is it possible to use a custom login.html page when web auth/passthrough is used with the input of the email? I have a requirement to have just the users to register with an e-mail address and I need to provide a custom page. I receive custom login p
-
Abandoning the router IPS Modules?
I attended a training IPS a few weeks back when the instructor stated that Cisco would be giving up the ability to have IPS modules in routers. Is this the case?