Add characters to the existing column values
Hi all -I have some values in one of the columns like below:
& lt; a href = "www.google.com target = _blank & gt; value & lt; /a & gt;
Is there a way I can add quotes and check the value look like
& lt; a href = "www.google.com" target = "_blank" & gt; value & lt; /a & gt;
Thank you
Published by: user10932986 on December 30, 2010 11:22
Published by: user10932986 on December 30, 2010 11:50
Hello user10932986.
This is a direct replacement based on your samples
SELECT REPLACE('value', ' target=_blank', '" target="_blank"') sample_text FROM dual
UNION ALL
SELECT 'value' sample_text FROM dual;
result
SAMPLE_TEXT
--------------------------------------------------
value
value
Hope this helps,
Luke
Please check the answer as helpful or response, if it is so. If this is not the case, further clarification.
Always try to provide actual statements or the sample and the full text of errors as well as an error code to help members of the forum to help you.
Tags: Database
Similar Questions
-
In default programs, it is possible to view a list of the existing default values?
Original title: Panel... Default programs
In default programs, it is possible to view a list of the existing default values?
In default programs, it is possible to view a list of the existing default values?
Maybe you ask yourself on this topic...
Start > default programs > associate a type of file or Protocol with a program > the right column is the list of the default settings.
-
Concatenate two columns and store it in the existing column
Hi all
I created a form based interactive report and need help on that. In the report, I want to display a column with label the CANDIDATE's FULL NAME by concatenating the existing columns in the same table.
Am mentioning the details and the following questions:
Table name: CANDIDATE_DETAILS
Column 1: CANDIDATE_FNAME (first name) Data Type: CHAR (50)
Column 2: CANDIDATE_LNAME (family name) the data type: CHAR (50)
Column 3: CANDIDATE_FULLNAME (full name) Data Type: CHAR (100)
If in the case of column 3 that is, CANDIDATE_FULLNAME is not created in the database, I could have written in query to create one using the concatenation of columns 1 and 2 of the column
ALTER TABLE CANDIDATE_DETAILS ADD CANDIDATE_FULLNAME TANK (100 CHAR)
AS (CANDIDATE_FNAME |) ' ' || ( CANDIDATE_LNAME)
Since then, I have already created CANDIDATE_FULLNAME column, I just change or simply store the concatenation of Column1 and Column2. I tried to use under request, but his does not work:
ALTER TABLE CANDIDATE_DETAILS
CHANGE CANDIDATE_FULLNAME ACE (CANDIDATE_FNAME |) ' ' || CANDIDATE_LNAME)
Also I'm checking the code under SQL Workshop-> SQL commands by entering the query below and his works fine.
Select CANDIDATE_FNAME. ' ' || CANDIDATE_LNAME
of 'CANDIDATE_DETAILS '.
but do not know where to enter this code in "The Page Creator" that without creating an additional column in the database my needs can be met.
Please let me know if you need more information and really appreciate any assistance.
Thank you
Verhasselt
Hello
If the requirement is to display the columns and their contents concatenated in a third, you can try this:
1. create a new column in the report by adding code to the selection of the report:
Select CANDIDATE_FNAME, CANDIDATE_LNAME, "'"CANDIDATE_FULLNAME"'CANDIDATE_DETAILS'"
2. in the page editor, select the "CANDIDATE_FULLNAME" column and his correspondents "formatting of column" > "HTML Expression" describe what you like:
#CANDIDATE_FNAME # #CANDIDATE_LNAME #.
-
How to get special characters in the oracle column only
Hi all
with spec_tab
as
(
Select ',' col1 of double
Union
Select ',' col1 of double
Union
Select 'something' double
)
Select col1
of spec_tab
How to get special characters in the oracle column only
You mean like this?
-------------
WITH spec_tab AS (SELECT ',,,,' col1 FROM DUAL UNION SELECT ',' col1 FROM DUAL UNION SELECT 'some thing' FROM DUAL) SELECT col1 FROM spec_tab where translate('~'||col1,'~0123456789abcdefghijklmnopqrstuvwxyz ','~')<>'~'
Output:
-----
COL1
,
,,,,
See you soon,.
Manik.
-
How to display the database column value in a component of choice selected?
Hello everyone;
I use Jdeveloper 11.1.1.4 and right now I have the .jspx UI page that includes < af:selectonechoice / > components and according to the requirment I have to fill one of the column in the table in this drop-down list.
can someone tell me how to fill the database column value in this drop-down list. I know I need to create the VO for the same thing, but I'm new to this technology. Then please suggest.
Thanks in advance.,
This will help u
https://blogs.Oracle.com/prajkumar/entry/create_lov_in_adf_application
How to create LOV in ADF 11 g | Techartifact
Oracle Fusion Middleware Technologies: 11G: how to create a list of Values (LOV)?
http://www.baigzeeshan.com/2010/03/creating-lov-in-ADF-application.html
http://husaindalal.blogspot.de/2010/05/How-to-default-lov-with-its-first-value.html
-
Add selection to the existing mask
Thissi is maybe somwhere mentioned in the manual, but I could not find.
You created a layer mask with selected objects, finished edge it - fine
All selections (ants in market) are now removed from the image
So you see you must add more stuff to the mask, if you select the new odjects
But how do you * add them * to the existing mask? Is there a quick way to do a single click?
Select items and apply whatever you need improvements. Hold down SHIFT and Ctrl (PC) or Cmd (Mac) and click on the thumbnail of the mask. This will add the new selections and selections of original mask together. You can now fill with black or white on the layer mask.
-
REGEXP_REPLACE to add characters in the string
Hi all
How to add characters between the sctring?
I have a string "1A24B67IO" and you want to convert to "1a 2 - 4B - 67IO.
I tried to use the REGEXP_REPLACE function, but not able to do.Hello
As you have not given the logic behind it... I guess you must insert - so much that even the example you provided.
With T as ( select '1A24B67IO' col_val from dual ) -- --End of sample data -- select regexp_replace(col_val,'([[:alnum:]]{3})([[:alnum:]]{2})([[:alnum:]]{4})','\1-\2-\3') from t / PRAZY@11gR2> / REGEXP_REPL ----------- 1A2-4B-67IO Elapsed: 00:00:00.20
Kind regards
Prazy -
How to put the two column values in two different colors unique online: MobApp
Hello
I develop Mobile Application.
I want to show two values in different columns in single row and first column value in either green or red and the second color the default column value.
the first value of the column is green when the value is greater than the second value of the column.
and the first column value in red when the value is less than the second value of the column.
The code I tried is:
--------------------------------------------------------------------------------------------
< tr:panelGroupLayout layout = "vertical" styleClass = 'list' >
< tr:panelList styleClass = "panelist ul > li > a" >
"" < tr:outputText value = "deliver: % #{row.bindings.OccCurr.inputValue},
inlineStyle = "background-color: #{rank." OccCurr > line. OccFcst? {'Green': 'Red'}; ">
"< tr:outputText value =" OccFcst: #{row.bindings.OccFcst.inputValue} % ">"
< / tr:outputText >
< / tr:outputText >
< / tr:panelList >
< / tr:panelGroupLayout >
------------------------------------------------------------------------------------------------
But the code above does not work.
Please, someone tell me what I need to do.
I apreciate your time and your help.
Sanchez.Hi Catherine,
Exactly, what is not working? Your OccCurr and OccFcst values are printed to the screen? I notice some questions.
(1) If you want to display two outputText on one line, you can surround them with a panelGroupLayout and set the page layout to horizontal.
(2) I don't think that you can place an outputText in outputText one another as in the codes that you have provided.
(3) your EL is inconsistent. What is #{row.bindings.OccCurr.inputValue} or #{line. OccCurr}? If your values are displayed, but the background color does not work, it could be the first.Kind regards
Amélie Chan -
How can 1 derive / display 3 second interval lines from the existing timestamp values
Hello
I'm trying to produce the number of lines that occur in intervals of 3 seconds and cannot work out how to use the timestamp values existing in the table of products or the display of lines with a second gap 3? The table rows look like this:
NAME (EDT) 1
1111 JANUARY 30, 15 12.29.09.000000000
PPPP JANUARY 30, 15 12.29.10.000000000
PPPP JANUARY 30, 15 12.29.11.000011111
1111 JANUARY 30, 15 12.29.11.000055555
PPPP JANUARY 30, 15 12.29.17.000000000
PPPP JANUARY 30, 15 12.29.18.000000000
1111 JANUARY 30, 15 12.29.29.000000000
PPPP JANUARY 30, 15 12.30.23.000000000
PPPP JANUARY 30, 15 12.30.25.000000000
1111 JANUARY 30, 15 12.30.27.000000000
PPPP JANUARY 30, 15 12.30.29.000000000
PPPP JANUARY 30, 15 12.30.31.000000000
1111 JANUARY 30, 15 12.30.33.000000000
PPPP JANUARY 30, 15 12.30.35.000000000
PPPP JANUARY 30, 15 12.30.37.000000000
1111 JANUARY 30, 15 12.30.39.000000000
And the output that I'm trying to reach/drift (initially) is as follows:
Timestamp1 Count
30 JANUARY 15 12.29.09 4
JANUARY 30, 15 12.29.12 0
JANUARY 30, 15 12.29.15 1
JANUARY 30, 15 12.29.18 1
JANUARY 30, 15 12.29.21 0
JANUARY 30, 15 12.29.24 0
JANUARY 30, 15 12.29.27 1
JANUARY 30, 15 12.29.30 0
…
JANUARY 30, 15 12.30.30 1
JANUARY 30, 15 12.30.33 1
JANUARY 30, 15 12.30.36 1
JANUARY 30, 15 12.30.39 1
Thus, the main problem that I see trying to derive the first column of numbers as shown above. If someone could give me help on this I would be very grateful.
Kind regards
Kevin.
with (name, time 1) testdata until)
Select "1111", to_timestamp (January 30, 15 12.29.09.000000000', 'dd-mon-yy hh24:mi:ss.ff') of all the double union
Select "PPPP", to_timestamp (January 30, 15 12.29.10.000000000', 'dd-mon-yy hh24:mi:ss.ff') of all the double union
Select "PPPP", to_timestamp (January 30, 15 12.29.11.000011111', 'dd-mon-yy hh24:mi:ss.ff') of all the double union
Select "1111", to_timestamp (January 30, 15 12.29.11.000055555', 'dd-mon-yy hh24:mi:ss.ff') of all the double union
Select "PPPP", to_timestamp (January 30, 15 12.29.17.000000000', 'dd-mon-yy hh24:mi:ss.ff') of all the double union
Select "PPPP", to_timestamp (January 30, 15 12.29.18.000000000', 'dd-mon-yy hh24:mi:ss.ff') of all the double union
Select "1111", to_timestamp (January 30, 15 12.29.29.000000000', 'dd-mon-yy hh24:mi:ss.ff') of all the double union
Select "PPPP", to_timestamp (January 30, 15 12.30.23.000000000', 'dd-mon-yy hh24:mi:ss.ff') of all the double union
Select "PPPP", to_timestamp (January 30, 15 12.30.25.000000000', 'dd-mon-yy hh24:mi:ss.ff') of all the double union
Select "1111", to_timestamp (January 30, 15 12.30.27.000000000', 'dd-mon-yy hh24:mi:ss.ff') of all the double union
Select "PPPP", to_timestamp (January 30, 15 12.30.29.000000000', 'dd-mon-yy hh24:mi:ss.ff') of all the double union
Select "PPPP", to_timestamp (January 30, 15 12.30.31.000000000', 'dd-mon-yy hh24:mi:ss.ff') of all the double union
Select "1111", to_timestamp (January 30, 15 12.30.33.000000000', 'dd-mon-yy hh24:mi:ss.ff') of all the double union
Select "PPPP", to_timestamp (January 30, 15 12.30.35.000000000', 'dd-mon-yy hh24:mi:ss.ff') of all the double union
Select "PPPP", to_timestamp (January 30, 15 12.30.37.000000000', 'dd-mon-yy hh24:mi:ss.ff') of all the double union
Select "1111", to_timestamp (January 30, 15 12.30.39.000000000 ',' dd-mon-yy hh24:mi:ss.ff "") of the double
)
, d (mn, mx, cnt) as)
Select min (time1) - second "3" interval
, max (time1) - interval of second '3'
, -1
of testdata
Union of all the
Select
MN + interval of second '3'
mx
, (select count (*) in testdata where time1 > = mn + '3' second interval and time 1)< mn="" +="" interval="" '6'="">
d
where mn<=>=>
)
Select
MN
cnt
d
where NTC! = - 1
Mn, mx, NTC group
Agenda minutes;
-
Unable to see the new column value in OBIEE11g report
Hi all
I'm totally new to OBIEE 11 g. I worked in OBIEE 10 g, but I am facing problem in 11g.
Description of the problem: I created a report using the analysis. I saved and attached to a dashboard. I wanted to add another column in the existing report. TO do this, I modified the report and saved as well. Report is in a table view. But the problem here is that the newly added column is not displaying in the dashboard report.
SO please let me know is there any scheme or any other configuration is required for the good report.
Thanks in advance.
NirajIf you work with 11.1.1.5, it's a bug (it is fixed at 11.1.16). If you add a column after viewing once the results, this column will be added to the secion excluded a view. Go to the edit view and then move the column to the included secion.
It will be useful.
Kind regards
Kalyan Chukkapalli
http://123obi.com -
Why do we say that I have to add characters to the address when I try to send an email
whenever I try to send an email a pink line comes and tells me that I must add charaters at the address that I send email to because they're trying to protect me against spam. but they have not told me what I should add to the characters. I am at my wits end and really tired to turn on my computer and there is something new that I can't do... I tried to restore to the time before the last update, but it did not work. Anyone know why? It has nothing to do with me is wrong with MacAfee, but a different virus scanner provider?
Please, help me, because I don't know what to do. I've only had this computer since February of this year and this is my first. I really am a novice and I feel taken advantage of and I feel like I'm being strong armed. I'm at my wits end.
Hi JoanneWiebe,
What email program are you using on your computer?If you use Windows Live Hotmail, I think what you see is the character challenge that requires you to enter the characters displayed on the screen to make sure you're the one send the email, and that you are not an automated system to send spam e-mails to several e-mail addresses:For any Windows Live or Hotmail related issues, please visit:Experts specialize in all things, Windows Live and Hotmail. -
Add PS6110 with the existing data to the existing group
Hello world
Is it possible to add a PS6110 with the existing volumes and connections to an existing uninterrupted group iSCSI?
Thank you!
Sven
Hello Sven,
No sorry. There is no possibility of group "fusion". In addition, discovery addresses are different for servers must be updated.
If you have enough space, you can migrate the data to a group. I.e. through Storage vMotion from VMware, then reset the released members and add it to the group.
Any solution you are looking for will be based on the host.
Kind regards
-
How can I add *.jar to the existing bb project?
Hello
How can I add *.jar to my existing bb project and use it as a library?
concerning
I solved it - the project with the source files must be defined as the library...
Anyway, thx for the article - it is clearly described step by step.
concerning
-
Display warning message if the user tries to update the existing column of trans_dt
Form of Oracle 10g
Hi gurus
I appreciate if someone help out me. I need to display the warning message if the user try to update the existing trans_dt, and I don't know what trigger I use. Thank you
Concerning
Matt
Hello
You can select the value entered by the user and then compare it with the data from the db table
in WHEN-VALIDATE-ITEM trigger
SELECT trans_dt
V_ INTOtrans_dt
table
WHERE THE... -PKs;
Then
IF: trans_dt <> v_trans_dt
THEN
-warning-
-u he could leave it as what or
raise form_trigger_failure;
END IF;
Amatu Allah.
-
How to upgrade are the value of the column and the new column value created
Hi all
create the table xxc_temp
as
Select donnees_1 'AB103', 'AAA' data_2 data_3 '123', 'RED' data_4, NULL status in all the double union
Select donnees_1 'AB105', 'BBB' data_2, '222' data_3, data_4 'BLUE', NULL status in all the double union
Select donnees_1 'AB106', 'CCC' data_2, '333' data_3, data_4 'BLUE', the double NULL status
create the table xxc_base
as
Select donnees_1 'AB103', 'AAA' data_2, '123' data_3 data_4 'RED', 'Inactive' status of Union double all the
Select donnees_1 'AB105', 'BBB' data_2, '222' data_3 data_4 'BLUE' status 'Active' of all the double union
Select donnees_1 'AB106', 'CCC' data_2, '333' data_3, data_4 'BLUE', 'Inactive' status of double
I need to update the status column xxc_temp with xxc_base value of the status column and also if the user tries to insert new values/lines in the xxc_temp
So how can I update the status column? I mean automatically set to day and also new values/lines
I need to update only that are Inactive then these lines should be updated in the temporary table
We can do this by using the stored function, but I need to update the new status of lines also
Please help me
Here's another way to do it, using VIRTUAL function column as expression to get the status of the other table
CREATE or REPLACE FUNCTION GET_STATUS (pDATA_1 IN TANK) RETURN VARCHAR2 DETERMINISTIC
AS
vstatus VARCHAR2 (8);
BEGIN
SELECT status in vstatus FROM xxc_base WHERE donnees_1 = pDATA_1;
RETURN vstatus;
END;
/
DROP TABLE 'XXC_TEMP ';
CREATE TABLE 'XXC_TEMP '.
('DONNEES_1' CHAR (5),
"DATA_2" TANK (3).
"DATA_3" TANK (3).
"DATA_4' VARCHAR2 (4).
'STATUS' VARCHAR2 (8) GENERATED ALWAYS AS (SUBSTR (GET_STATUS (DATA_1), 1, 8)) VIRTUAL
) ;
INSERT INTO 'XXC_TEMP' (data_3, donnees_1, data_2, data_4))
Select "AB103' donnees_1, data_2 'AAA', '123' data_3, 'RED' data_4 of any double union
Select donnees_1 'AB105', 'BBB' data_2, '222' data_3 data_4 'BLUE' of all the double union
Select donnees_1 'AB106', 'CCC' data_2 data_3 '333', 'BLUE' double data_4);
Maybe you are looking for
-
How to change the language of the control panel
Hello Hp scanjet 8270 control panel display shows different language not English not necessary Solution how to change the control panel display language to English.
-
Wiped my touchpad, now I can't detect the drive when it is plugged into usb
No device Under info on the device, go to the Options of Reset and full erase. After the restart back, put my acc, plug it into usb, I can't detect my drive. He showed a blank disc and invite me to format it. .. pls help...
-
Installed CC 30-day trial. Getting the error "Lightroom can't create a catalog named"ightroom catalog on volume OC (c) because Lightroom can't save the changes to this place". Tried to "Choose a different catalog" same mistake several times.
-
InDesign/InCopy package created by CCP asking (disabled) application CC
We create the installation packages for the new version of the Creative Cloud 2015, for use by our staff and teachers of higher education. We have the appropriate volume license an ETLA, I think. Creative cloud Packer (CCP) allows us to produce Mac O
-
Student version of adobe cc can communicate normally with the standard versions in office?
From stage were we are supposed to have our own programs of suites but want to be compatible with the professionals on the cloud of office accounts. If I use my discount for students that will undermine our ability to communicate and to use the servi