concatenation of the values of the fields to update a column
Hello.I have several columns in my table. I want to concatenate the value of a column to another.
for example
I want to PASS B value = value of COL B and c PASS.
Is this possible? I know that
UPDATE tbl SET COL B = COL C + COL B
does not, as the Oracle sees it as a mathematical equation.UPDATE tbl SET COL B = COL C
work, manufacturing COL B is equal to, or rather as value of the COLLAR C.Let's say COL b John and COL C a Smith, and I wanted to PASS B show JohnSmith, for example.
What is the right syntax? I can't be that far off. Comments or a tip is appreciated!
Thank you.
UPDATE tbl SET COLB = COLB||COLC
OR
UPDATE tbl SET COLB = CONCAT(COLB,COLC)
Tags: Database
Similar Questions
-
Select the field to update the text box
now, I'm doing a text box to fill from a table when a value has been chosen on the selection list.
basically a user will select a number of project of a selection list. Once that a text box will automatically fill with text from a table. Using something similar to the code below.
I'm just at a point where I don't really know where to put this code it will work.SELECT PROJ_COMM FROM PROJECTS WHERE PROJ_NUM =:P17_PROJ_NUM
any ideas?
Published by: KySarge1981 on August 23, 2010 13:39Hi Mike,.
I think you might find Anthony Action dynamic Sample Application very useful: http://apex.oracle.com/pls/otn/f?p=39830:32. If you connect to the application, you will find a link to download it, then you can take a look at how each of the samples have been implemented. The example of ' Set Value (SQL) "would be of particular interest in this case. Blog of Anthony on the sample application here: http://anthonyrayner.blogspot.com/2010/07/apex-40-new-dynamic-action-sample.html.
I hope this helps.
Kind regards
Hilary -
Incorrect date in the field Explorer update
I bought a new flash drive to use for backups. I created a new folder, backup files and copied and saved to My Documents. later I noticed the flash player was two files, backup files, I had created, and the other call. ReadyDLNA. The update indicated to explore for. ReadyDLNA was 12/31/1999, as well as the date on my newly created backup files was 02/01/2000. What caused the update to be incorrect? I've been bitten by the bug? Everyone knows about this problem? What sets the date for the update in the Explorer? Is it possible to fix dates? Thank you.
I was really hoping to be able to change the date, but I guess that you're telling me that there is no way to do. Right?
No, unless you always want to use a 3rd party utility.
With the tools you suggested, it would be possible to partition the flash player without destroying my backup file and then format the new partition to NTFS, or I just need to reformat the entire flash drive and lose my backup?
If your flash drive is big enough you just "Shrink" / resize the existing partition, create a new partition and format it.
Why do you have NTFS? - More robust than FAT32
J W Stuart: http://www.pagestart.com
-
Workflow when the field is updated
Hello
I want to create a workflow that is triggered only when the sales stage varies from a null or something else to Closed/Won, but I'm not sure what the syntax of the function should be someone can help?
I tried the following function:
[< SalesStage >] = [< SalesStage >] AND PRE ("< SalesStage >" ") =" Closed / Won.
And even if it sends the e-mail, she does it all! time of recording is modified/opened and saved. I need it for work ONLY when the stage of the sale changes to Closed/Won.
Help, please.
I need the same type of workflow for a checkbox in another record.
Published by: user13424000 on June 20, 2011 12:42Try with this combination
[
] less than symbol like symbol PRE(' ') AND [ ] = ' Closed/Won. This will ensure only is trigerred that when the final stage of sale becomes closed / Won.
Published by: user13272258 on June 20, 2011 07:42
-
Problem in the code to update a column value based on the value of a column
Fusion by using item_TMP S points I have on (S.ITL_ITEM = I.ITEM_ITEM)
When matched then
game update
S.ITL_UOM = I.ITEM_UOM;
When not matched then null;Try
update Item_TMP set ITL_UOM = (select ITEM_UOM from ITEMS where Item_TMP_TMP.ITL_ITEM = ITEMS.ITEM_ITEM and items.ITEM_UOM is not null ) where ITL_ITEM in (select ITEMS.ITEM_ITEM from ITEMS where items.ITEM_UOM is not null ) /
Cheers, APC
blog: http://radiofreetooting.blogspot.com
-
How to add the field values custom calculation script
Hello
I have a calculation script:
var bits = this.getField("DEXM").value;
jib var = this.getField("acrofocus").value;
var Misc = this.getField("acromisc").value;
LVL var = this.getField("LVL").value;
chk var = this.getField ("Check Box1.0") .isBoxChecked (0);
{if(CHK==1)}
Event.Value = (5 + jib + misc abi + (Math.floor (lvl/2))) ;}
on the other
{event.value = (jib + various + bits + (Math.floor (lvl/2))) ;}}
I try to get the sum of the fields based on the value of a checkbox control. The if statement seems to work because the result does not change, but instead of adding up the results, it adds the numbers. Example: chk == 1, so add 5 + 0 + 0 + 2 + 1 and 8 display. But instead, it displays for event.value 521. All fields which events are digital with 0 decimal. What happens here? I expect that if they were formatted text fields, but they are not.
Thank you all.
You must explicitly convert the value of each field of a number. As an empty field values is a string type, the + operator gives you string concatenation instead of adding digital. You can review the first four lines of the script to:
ABI = var + this.getField ("DEXM") .value;
jib var = + this.getField ("acrofocus") .value;
Misc = var + this.getField ("acromisc") .value;
var = LVL + this.getField ("LVL") .value;
and it should work properly.
-
Unable to update the password. the value provided for the new password does not respect length, complexity, or history of the field requirements
Hello
I suggest you to send your request in this forum for better support. -
Is there an easy way to filter a 2D table based on the values in two fields?
Y at - it an easy way to filter a 2D table based on the values of one of the fields. In my attached VI the output array has the following format:
Ident Frame Type bytes TimeStamp data
10:57:07.621 3AD00016 POUVEZ 8 0000000000000000 data frame
10:57:07.622 3AD00017 CAN data frame 8 000005E000000000
10:57:07.624 3AD00018 POUVEZ 8 0000000003300000 data frame
10:57:07.625 2DC00000 POUVEZ 8 0000000000000000 data frame
10:57:07.626 3AD00019 POUVEZ 4 0000030000000000 data frame
I would like to delete all lines that do not have an "Ident" between the values of 3AD00000 and 3AD0001E. So for the data above the fourth row would be removed. The only way I can see to do this is to form a 1 d table. Is there a better approach?
Thank you.
Hi chuck72352,
After you've sorted your data, you can use the function InRange. Combined with a "search in 1 table D", you get the range you really want.
Mike
-
Value of the field address in Debug portal
I'm new to push the technology,
I have download the sdk to push successfully for the blackberry and install site it now I want to push the message from the portal-debug in the management of debugging-gate push---> push-->
I'm not able to find whose address is given in the field address given in the form.
I get the following error:
2002:
For the address was not in a
recognized or is invalid or unknown format (IE not a subscriber).
I do not know what id push I gave during the push.
I give id as 5.
but do not know what value I give in the address field
due to above error I am not able to generate push of the portal pushid null value is given
Push id must be a globally unique value - anything in the world at random.
The address must be the id of the Subscriber/user name that you registered with the device.
-
Hallo,
I defined a VO with 3 fields (A, B and C) and I would like to create a SelectOneChoiche that shows only the field as options from this instance of VO.
In a managed bean, I need to retrieve the values for all areas (A, B and C) of the item selected by the user.
I started dragging the entire VO instance to UI to create a SelectOneChoiche (in which I have chosen to show only the to field).
Then, I created a for the SOC ValueChangeListener read the values A, B and C of the selected element, but the only thing I've done is to get the displayed value:
System.out.println((String) ((RichSelectOneChoice) FacesUtils.findComponent("MySoc")).getValue());
You kindly help me?
Thank you
Federico
Federico, sorry I didn't see your answer.
As you use 12.1.3 you can do this more easily than the code that I posted before. You can use
{} public void onCountrySelection (ValueChangeEvent valueChangeEvent)
FacesContext will involve = FacesContext.getCurrentInstance ();
Make sure that the selection change is processed and the current link lov line has the new selected line
valueChangeEvent.getComponent () .processUpdates (contxt);
BindingContext lBindingContext = BindingContext.getCurrent ();
BindingContainer lBindingContainer = lBindingContext.getCurrentBindingsEntry ();
List JUCtrlListBinding = lBindingContainer.get ("CountryId") (JUCtrlListBinding);
the newindex in not necessary, but ok let's get it (must be equal to the CountryId, the pharmacokinetics of the binding of the lov
String newindex = (String) valueChangeEvent.getNewValue ();
get the selected value in the list that is the selected line of the binding of the lov
Line lFromList = list.getSelectedValue () (line);
now, we can get the attributes of the line of lov
String s = (String) lFromList.getAttribute ("CountryId");
System.out.println ("CountryId:" + s);
String s2 = (String) lFromList.getAttribute ("CountryName");
System.out.println ("CountryName:" + s2);
BigDecimal s3 = lFromList.getAttribute("RegionId") (BigDecimal);
System.out.println ("RegionId:" + s3.toString ());
}
The form that I use is based on the location of the HR DB schema table. The CountryId is configured in the view object to display a lov based on the campagneVoir. This view contains thre CountryId, CountryName and RegionId attributes.
If you want to get to the attributes of an action listener you can use this code
{} public void onGetSelectedCountryLov (ActionEvent actionEvent)
BindingContext lBindingContext = BindingContext.getCurrent ();
BindingContainer lBindingContainer = lBindingContext.getCurrentBindingsEntry ();
List JUCtrlListBinding = lBindingContainer.get ("CountryId") (JUCtrlListBinding);
get the selected value in the list that is the selected line of the binding of the lov
Line lFromList = list.getSelectedValue () (line);
now, we can get the attributes of the line of lov
String s = (String) lFromList.getAttribute ("CountryId");
System.out.println ("CountryId:" + s);
String s2 = (String) lFromList.getAttribute ("CountryName");
System.out.println ("CountryName:" + s2);
BigDecimal s3 = lFromList.getAttribute("RegionId") (BigDecimal);
System.out.println ("RegionId:" + s3.toString ());
}
You must add the valueChangeListener and at least add the lines
FacesContext will involve = FacesContext.getCurrentInstance ();
Make sure that the selection change is processed and the current link lov line has the new selected line
valueChangeEvent.getComponent () .processUpdates (contxt);
to ensure that the selected line is available when you click the button.
And set autosubmit'= true for the field in the UI that displays the LOV.
Timo
-
Is it possible to display the dynamic value in the ToolTip?
I tried:
this.assist.toolTip.value = this.rawValue; for a text field on 'ownership' MouseEnter
but it does not display the current raw value. It displays a previous raw value of the field...
I wrote 'YYYY', but is not displaying on the first mouseEnter event
When I show event mouseEnter for the 2nd time it gives good value.
Now, I changed the "BBBB" value but the first mouseEnter event it displays the value previous i.e. "YYYY."
I found the solution. I wrote the script ("this.assist.toolTip.value = this.rawValue ;") on 'property MouseEnter' but the need to write the script to the "Output" of the field event. ")
Thank you.
-
How to read the values of the field of LOV disabled?
Hi all
I have a requirement, based on values that we entered one of the LOV fields, then we are arising from the new values based on the value that we entered this field of LOV. And then I must by default new LOV values derived in a two other fields of LOV and then disable them. Once the fields are disabled, then I'm not able to read the values using the pagecontext.getparameter... I get nothing when I tried to read using the pagecontext.getparameter.
Pointers on how to read the values of disabled field/LOV?
Thank you
Clarriiza1. you already have values, and that's what you set in the LOV before turning off, right? So why do you need to recover again from the LOV.
2. are you disabling or making it readonly? I think that if it is disabled, you might still be able to get the value using pageContext.getParameter.
3 have you tried to get the handle to the LOV bean and get the value using lovBean.getValue (pageContext)?
4. another Option is to combine the value of a FormValue Bean also (as well as the LOV bean) and retrieve it from FormValue.
5 BTW, why are, why you're seen LOV if you disable it? Can't you just a TextBox?
See you soon
AJ
-
Hi, I use jdeveloper 12.1.3 1.
1. I request ADF, master form Panel and secondary table.
2. by default create insert button is enabled in the secondary table. ( button)
3. no data is demonstrated at the start and it's ok because the main table of the form and the details is under the Panel request af.
4. even if no data is shown in the form of af, when we get the value of the field (i.e. product) to support bean, field returns a value.
5. If I am not able to disable the button.
I tried to use backing bean to disable this key under certain conditions (example: If there is a value for the product on the screen can turn on this button), even if nothing appears on the screen, if we get the value for the field (i.e. product) it returns a value.
Hello
Tell me if I'm wrong, but you want to disable the button if there is no data in the form of master?
Try with this property disabled in your button:
Disabled = ' #{bindings. " Product.inputValue == null} ".
change 'Product' for the field in the form that will always return a value when there is a line.
Kind regards
Ruben.
-
I can't use the value of a field in pl/sql
Hello
I have all the fields in a form in a table based on dblink. It is possible to change a single field 'P250_NOTA_PREPARAZIONE_SPED' and I have a dynamic action associated with a botton in pl/sql:
Start
Update ordini_produzione@dbl6
Set nota_preparazione_sped =: P250_NOTA_PREPARAZIONE_SPED, utente_mod_collo =: app_user, data_mod_collo = sysdate
where
ROWID =: P250_ROWID;
end;
Works of update statement, the column utente_mod_collo and data_mod_collo have been changed correctly but not the column 'nota_preparazione_sped': it is not being updated.
Why this behavior?
Concerning
Gianpaolo
gianpagi wrote:
I have all the fields in a form in a table based on dblink. It is possible to change a single field 'P250_NOTA_PREPARAZIONE_SPED' and I have a dynamic action associated with a botton in pl/sql:
Start
Update ordini_produzione@dbl6
Set nota_preparazione_sped =: P250_NOTA_PREPARAZIONE_SPED, utente_mod_collo =: app_user, data_mod_collo = sysdate
where
ROWID =: P250_ROWID;
end;
Works of update statement, the column utente_mod_collo and data_mod_collo have been changed correctly but not the column 'nota_preparazione_sped': it is not being updated.
Why this behavior?
At the time the dynamic action is executed, the value of P250_NOTA_PREPARAZIONE_SPED is not available for the PL/SQL code in session state, it takes place only in the browser. Include P250_NOTA_PREPARAZIONE_SPED in elements of Page to submit property the dynamics of the action so that the changed value is updated in the State of session before the PL/SQL code is executed.
-
I work on a PDF form and am stuck on one of my calculations. There are two fields 'desired Start Date", which is a date entered by the user. The "desired end" date is one year from date entered by the user. I figured out - however, before the user enters a date, I want this field remains empty. Currently, it fills with 01/00/000. How can I get this field to calculate not unless a date is entered by the user? So far, I tried this but can not get the blank to stay:
If the field 'Desired Start Date' is empty, leave 'to' field blank
var myStartDate = new Date (this.getField("Desired_Effective_Date").value);
If (((myStartDate == 0) & & (getField("myStartDate").valueAsString = "")) {event.value = "";})
If the field "Desired Start Date" is an effective date, use the date to calculate one year after the date of entry.
}
else {this.getField("to").value = util.printd ("mm/dd/yyyy", new Date (myStartDate.getFullYear () + 1, myStartDate.getMonth (), myStartDate.getDate ()))}
Try the following than the calculation script custom field "to".
Get the value of the date field beginning
var sStartDate = getField("Desired_Effective_Date").valueAsString;
If the start date field is not empty...
If {(sStartDate)
Converts a date in a date object string
Kai = util.scand ("mm/dd/yyyy", sStartDate);
Add a year
oDate.setFullYear (oDate.getFullYear () + 1);
Set this field to the calculated date value
Event.Value = util.printd ("mm/dd/yyyy", anyway);
} else {}
This field blank because the input field is empty
Event.Value = "";
}
You may need to change the date format "mm/dd/yyyy", I used to match the formats of date fields.
Maybe you are looking for
-
Recovery problem Satellite L505-110 Win 7 64 bit
Hello I have a laptop Toshiba L505-110, Windows 7 64 bit Turkish and he began to slow down recently, so I want to recover windows 7, but in some Turkish forums, guys who have tried recover like that, facing a problem. The problem is that Windows 7 ha
-
Re: Satellite C650D-12J - BOOTMGR is missing
See previous thread Re: Satellite C650D-12J - recovery of missing HARD disk imagePosted the: 06-Aug-2011 16:07 in response to: bobmc I am back with another problem.I ordered a Toshiba Recovery arrived ok.I inserted in the drive and follow the instruc
-
the printer door remains open on my Canon pixma mx712
After a print session busy using the entrance of a desktop and a laptop, the printer door remains open. I don't see any obstructions. It cannot be forced or closed. Can someone help me?
-
mx922 2,157,50 scan error
My scanner was used to work until yesterday. Now when I try to scan, document on the scanner, click scan in the quick menu of Canon (as before), then he wakes up the printer/scanner and seems to start scanning. Then after several long minutes (more
-
I have built in wireless antenna on my Dell s3120n, which is connected to a modem 7500 Westell, internet remote access. Once I unplug the dsl cable I have only local broadband access, no internet. Not sure if my wireless antenna work either (adapter