Simple question: how to divide the string into multiple lines concatenated?
Hi people,Maybe it's an easy question.
How to split a string that is concatenated into multiple lines by using the SQL query?
ENTRY:
select 'AAA,BBB,CC,DDDD' as data from dual
Delimiter = ', '.Expected results:
data
------------
AAA
BBB
CCC
DDDD
I'm looking for something nice to feature "an opposite to «sys_connect_by_path»»Thank you
Tomas
with t as (select 'aaaa,,bbbb,cccc,dddd,eeee,ffff' as txt from dual)
-- end of sample data
select REGEXP_SUBSTR (txt, '[^,]+', 1, level)
from t
connect by level <= length(regexp_replace(txt,'[^,]*'))+1
REGEXP_SUBSTR(TXT,'[^,]+',1,LE
------------------------------
aaaa
bbbb
cccc
dddd
eeee
ffff
Tags: Database
Similar Questions
-
How to divide the string in bb-cascades
I have a table of data as json
{"RegistrationResult":"Registered Success:Empid:157:TableName:COMPANY156"}
Now, how I want to split the show list view in qml and string as the follwing
Success stories
EmpID = 157
TableName = COMPANY156
Please tell the concept of cutting a string and show the result in qml
I can get the result of the follwing method:
{"RegistrationResult":["Registered Success","Empid":"157","TableName":"COMPANY156"]}
But I do not know how to split the string for a first... Help, please...
svmrajesh wrote:
,......
"Registered Success:Empid:157:TableName:COMPANY156"}
Take a look at QString docu
Just do something like
myString.split(':')
and you get a QStringList and this QStringList is directly mapped to a table in QML JavaScript
-
How to divide a string into an array of strings in separate tables
Greetings,
I have an array of strings which displays strings in a text file. I read each line of the text file and put it in an element of the matrix of the chain.
Now, I'm trying to divide each string for each part of the chain, then put in a separate table. Each element in the chain is separated by a comma. I hit a brick wall at this point and would like to help please?
The purpose of this is so that I have 4 tables that will be ready their item values and set variables based on these values until I went through all the elements in each array.
Attached example.
Also my VI is attached.
Thanks in advance for your help.
Then just use Index Array on 2D array provided.
-
Divide the string into rows according to the space
I'm using Oracle 11.2.0.3. I need a faster way to divide the organization names based on space as possible just using SQL.
with org as
(
Select 1 org_pk, org_nm 'ALL american, INC.' of any double union
Select org_pk 2, org_nm "COMPANY A.G" Union double all the
Select org_pk 3, org_nm "GROWTH FUND SPONSORS and SONS, Inc." of the double
)
Select * org;
Result, I need is
1. ALL THE
1 american
1, INC.
2 A.G
2 COMPANY
3. THE GROWTH
3 FUND
3 SPONSORS
3 and
3 WIRES,
3 INC.
Thank you very much.
You can use GROUP BY with LISTAGG or XMLAGG. And ordinalite allows to preserve order:
with org as)
Select 1 org_pk, org_nm 'ALL american, INC.' of any double union
Select 2 org_pk, 'A.G COMPANY' org_nm of all the double union
Select org_pk 3, org_nm "GROWTH FUND SPONSORS and SONS, Inc." of the double
)
Select org_pk,
x.org_nm,
x.o
org,.
XMLTable)
"ora: tokenize(.,"").
by the way ' ' | org_nm
columns
path of varchar2 (4000) to org_nm '.'.
o for the ordinalite
) x
where x.org_nm is not null
/
ORG_PK ORG_NM O
---------- ------------------------------ ----------
1 ALL 2
1 American 3
1 ,INC 5
2 A.G 2
2 COMPANY 4
3 GROWTH 2
3 FUND 3
3 4 SPONSORS
3 and 5
3 SONS, 6
3 INC. 711 selected lines.
SQL >
However, I would like to use SUBSTR/INSTR plain + CONNECT BY if the volumes are large or performance is important.
SY.
-
I am Brazilian and I use Adobe Acrobat Reader DC a lot. I would suggest an implementation of features present in the PC, I missed a lot of things on Android, which is 'New window' or something like that, like split the screen into two parts in order to see the two different parts of the same file.
For smartphones, its use is restricted, but for tablets, it can be really useful, because it allows the display of two distinct points of the same file,
I have reduced considerably the use of paper using this application, however, I need to navigate the file always pick up a few points seen earlier, which causes a lot of discomfort compared to printed documents.
This is a suggestion, but I would like it to be considered.
Thank you for your request. We have taken note of the same and must try to integrate it into one of our future releases.
Thank you.
-
I created an interactive report and a form. By clicking on the button Edit in the report, taking me in a form with all the details of that particular line. Now I want to divide the elements in 2 forms, edit details, and update them at the same time. Pointers or suggestions is appreciated
Published by: user739459 on August 17, 2011 12:59If you want to split because of the logical separation between the elements, you can create a new region and move some items to that. If you want to keep certain items on a single page and some on the other hand, you can copy the page and remove the items is not necessary two pages (except primary key point). Now, create a button on the first page to open the second page, passing the primary key and do the same on page two.
Lavenu
MaxApex accommodation
http://www.maxapex.com -
New user of Windows 8. Simple question - how to access the Solitaire game on Windows 8?
Just bought a new desktop computer with Windows 8
There can be no pre-installed games. Go to the store and get the games you want.
Or if you want the files executable you can get on the net. Don't know if its legal... -
Divide the data into several lines in the table
Hello
I use apex of Oracle 10 g 3.2.
I have a requirement like this.
I have a table like TableA
Col1 Col2
90 1
91 1:2:3
92 3
I want the data as
Col1 Col2
90 1
91 1
91 2
91 3
92 3
How to do this?
Thank you
Published by: user13305573 on August 3, 2010 20:16with your_data as ( select 90 as col1, '1' as col2 from dual union all select 91, '1:2:3' from dual union all select 92, '3' from dual ) select y.col1, regexp_substr(y.col2, '[^:]+', 1, t1.column_value) as col2 from your_data y, 13 table(cast(multiset(select level from dual connect by level <= length (regexp_replace(y.col2, '[^:]+')) + 1) as sys.OdciNumberList)) t1 14 / COL1 COL2 ------------------ ----- 90 1 91 1 91 2 91 3 92 3 5 rows selected. Elapsed: 00:00:00.05 ME_XE?select * from v$version; BANNER ---------------------------------------------------------------- Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product PL/SQL Release 10.2.0.1.0 - Production CORE 10.2.0.1.0 Production TNS for Linux: Version 10.2.0.1.0 - Production NLSRTL Version 10.2.0.1.0 - Production 5 rows selected. Elapsed: 00:00:00.03 ME_XE?
-
How to divide the Source file into smaller files without export?
Hi all
I am a beginner with PPro CS4 and video editing in general. I did a lot of research on Google and the search of these forums for an answer to this question, but I have not found a clear answer. Here's my problem:
I have many hours of HDV video in recent years with a Canon HV30. This sequence is on dozens of DV tape cassettes. I want to capture most of it on the disk.
When I capture a band on the disc, I get a single large mpeg4 file. (Body captures all HDV films in mpeg4). "select Scene" does not work with the HV30, so my only way to make a small capture files would be set In/Out points with batch capture. But that would mean hours of fast forward and back with VCR type controls on the camera for the revision of all bands and points. I thought it might be more QUICK to capture everything simply a whole band at once, and THEN examine the band captured the Organization (he is much faster using the Purifier), and by dividing the file into smaller files within the Organization, thus avoiding mechanical advance and rewind on the camera itself.
But the only way I can find for it seems to imply EXPORT clips. Am I wrong to think that the export of a clip to a new file involves a degradation of the original mpeg4 source file? Or there will be no loss of quality if I simply export to mpeg4 format?
It seems that there should be an easy way to simply divide the initial capture in small source files for editing later, without putting the images through a new generation of (exporting) treatment, which could result in a loss of quality. Or I'm wrong about this?
(CS4 Master Suite, i7 3630 k, 16 GB RAM, C: 256 GB SSD, 1 t D:, E: 1 t F3 setpoint setpoint F3)
HDV film is mpeg2 (which is a number). CS4 is not scene detect you will need to use HDV split for this.
http://strony.aster.pl/paviko/hdvsplit.htm.
You can run your files already captured by hdv split and it will cut the file into clips and you leave.
-
splits the string into 3 parts
Hello
I have a requirement to split the string into 3 different room example inf.ethz.ch should be subdivided into inf ethz ch in 3 different column
We have table called email within this column contains all identification of email we need to divide email with dot (.) in different columns and display please suggest how to implement in the query
Thank you
Sudhir
Use REGEXP_SUBSTR:
SQL > with t as (select ' inf.ethz.ch' double txt)
2 Select regexp_substr (txt,'[^.] +') part_1,.
3 regexp_substr (txt,'[^.] +', 1, 2) part_2,.
4 regexp_substr (txt,'[^.] +' 1, 3) part_3
5 t
6.BY PARTY PA
--- ---- --
INF ethz chSQL >
Or you can use SUBSTR + Instr.
SY.
-
Oracle regular expressions - splits the string into words for
Hello
Nice day!
My requirement is to split the string into words.
So I need to identify the new line character and the semicolon (;), comma and space like terminator for string entry.
Please note that I am currently embedded blank and the comma as separator, as shown below.
Select regexp_substr('test)
TO
string in words, "([^, [: blanc:]] +) (', 1, 1) double;"How to integrate the semicolons and line break characters in regular expression Oracle?
Please notify.
Thanks and greetings
Sree
This has nothing to do with REGEXP. Is SQL * more parser does not not a semicolon at the end of the line:
SQL > select ' testto, mm\;
ERROR:
ORA-01756: city not properly finished chainSQL >
Just break the chain:
SQL > select regexp_substr ('testto, mm\;' |) '
2 string into words
3 \w+',1,level ',') of double
4. connect by level<= regexp_count('testto,mm\;'="" ||="">=>
5 string in words
6 ','\w+')
7.REGEXP_SUBSTR ('TESTTO, MM\;' |') STRINGIN
--------------------------------------
Testto
mm
string
in
WordsSQL >
Or modify SQL * more the character of endpoints:
SQL > set sqlterm.
SQL > select regexp_substr ('testto, mm\;)
2 string into words
3 \w+',1,level ',') of double
4. connect by level<=>=>
5 string in words
6 ','\w+')
7.REGEXP_SUBSTR ('TESTTO, MM\;) STRINGINTOWO
--------------------------------------
Testto
mm
string
in
WordsSQL >
SY.
-
How to use the String with an external dispatchEvent event.target.name?
... I hope that the question of the title makes sense...
On my stage, I have an external SWF loaded with a button. When you click the button dispatches the main event scene.
On the main stage a listener can load a SWF it in a magazine called Gallery.
The charger of the Gallery is also shared by the buttons on the main stage, who use the event.target.name chain to appeal to sovereign wealth funds with corresponding names.
I use tweens to fade and, in the content of the Gallery when a key is pressed.
--
Loading of the FSV worked until I tried to create a universal function for the dispatchEvent buttons...
The problem I have is that I don't know how to set the string to indicate to the newSWFRequest where the SWF file when triggered by external buttons.
(I maybe do this wrong... but thought that the best way to load a SWF on the main stage from an external SWF was using dispatchEvent?)
My code raises the event and the charger of the Gallery Faints, but then it does not find the new SWF:
Error #2044: Unmanaged by the IOErrorEvent:. Text = Error #2035: URL not found.
Please can someone help me understand how to make the point in the chain in the right direction? (I think that the errors only are in bold below)
Code:
var myTweenIn2:Tween;
var myTweenOut2:Tween;
var nextLoadS2:String;
Listening external inclinometer shipped external event
addEventListener ("contactStage", btnClickExtrnl);
function btnClickExtrnl(e:Event):void {}
nextLoadS2 =?
myTweenOut2 = new Tween(gallery,"alpha",None.easeOut,gallery.alpha,0,0.2,true);
myTweenOut2.addEventListener (TweenEvent.MOTION_FINISH, tweenOutCompleteF2);
}
Function universal BTNS
function tweenOutCompleteF2(e:TweenEvent) {}
myTweenOut2.removeEventListener (TweenEvent.MOTION_FINISH, tweenOutCompleteF2);
myTweenOut2 = null;
var newSWFRequest:URLRequest = new URLRequest ("SWFs /" + nextLoadS2 + ".swf");
myTweenIn2 = new Tween (Gallery, "alpha", None.easeOut, gallery.alpha, 1, 0.2, true);
Gallery.Load (newSWFRequest);
Gallery.x = Xpos;
Gallery.y = Ypos;
}
Thank you.
If this code is on the timeline of a child of the main timeline of your external swf add parent 3rd in two lines with parent.parent.
-
Simple question - how to make an onchange event occur in a select list
Simple question - how to make an onchange event occur in a list to start a process of selection?
Thank you(1) with the ApEx selection about to submit list.
You create a PL/SQL process after Submit. -> Request for conditional Type = Expression1. -> Expression1 is the name of your selection list. Treat the Source - > procedure you like. For example based on your select list value you add rows in different tables.
(2) Javascript this example will change a system parameter value when changed -
Simple question-how to call a stored procedure or function of apex?
Simple question-how to call a stored procedure or function of apex?
Thanks advance.
DougHi Doug,.
You can call a procedure or function of apex. It depends on what you want to do with the function or procedure. If you want to retrieve table data in a specific area, you can try something like this-The following statement creates the function get_bal on the oe.orders of sample table (PL/SQL is in italics):
CREATE FUNCTION get_bal (acc_no in NUMBER)
RETURN NUMBER
IS acc_bal NUMBER (11.2);
BEGIN
SELECT order_total
IN acc_bal
Orders
WHERE customer_id = acc_no;
Return (acc_bal);
END;
/The function created in the previous example can be used in a SQL statement. For example:
SELECT get_bal (165) FROM DUAL;
GET_BAL (165)
------------
2519hope this will help,
Kind regards
Pascal M
http://Tajuddin.whitepagesbd.com -
Simple question - how to make a readonly field
Simple question - how to make a readonly fieldHi DougBlincoe!
I think you're looking for this:
1. create the element. See "creating a Page level item.
2. navigate to the appropriate page definition:
Go to the Home Page of the database.
Click the icon of the Application Builder.
Select an application.
Select a page.
The definition of Page appears.
3. under items, select the name of the element.
The attributes for the element page.
4. to display an item under certain conditions:
Scroll up to Conditions.
Make a selection in the list Type of Condition.
Enter an expression in the fields provided.
* 5. To make an element read-only: *.
Scroll to display playback settings.
Make a selection in the playlist only Type of Condition.
Enter an expression in the fields provided.
Click on apply changes.
Here, you will get more information about this:
# Create the item. See ["Creating a level of Page element" | http://download.oracle.com/docs/cd/B25329_01/doc/appdev.102/b25309/bldapp.htm#BCEFHBHG].
# Navigate to the appropriate page definition:
# Go to the Home Page of the database.
# Click the icon of the Application Builder.
# Select an application.
# Select a page. ------------------Definition of Page appears.
# Under items, select the name of the element. ------------------Page attributes for the element.
# To display an item under certain conditions:
# Conditions scroll.
# Make a selection in the list Type of Condition.
# Enter an expression in the fields provided.
# To make a read-only element:
# Scroll the display reading settings.
# Make a selection in the playlist only Type of Condition.
# Enter an expression in the fields provided.
# Click on apply changes.Here, you can read more information about this:
http://download.Oracle.com/docs/CD/B25329_01/doc/AppDev.102/b25309/bldapp.htm#sthref805
I hope this helps!
Maybe you are looking for
-
all-in-one HP Deskjet 1512: remove ink cartridges
Hello I've just set up my new printer, but the light of attention and two ink cartridge lights continue to Flash. I can't figure out how to remove the cartridges, so I try to reinstall them. I did exactly what the instructions said to do, but obvio
-
Upgrading CPU for Satellite L500D
Hi all, I have a L500D with Council nswae and AMD Athlon II m320 dual core cpu.I have a phenom quad core 2.2 II N970 CPU that I would install but I can't find any info about the weather or not it is compatible. It's the BIOS able to run a quadcore an
-
How important is the orientation of the MXI-2 cable
I have an application that requires a MXI-2 cable in the following configuration: connector at right angles point to the right-point connector. The MXI-2/M2 cable is similar to what I need: Straight-point connector connector at right angles in Garlan
-
Error code 80070539 will not install in new Windows Pro 32
Starts to install, allows you to restore and shortly after "updates could not be installed" I closed Google desktop, 3rd party antivirus paused and have nothing else running. Will have some problem installing HP 6 L printer and get other software to
-
HPWSProAdapter: Error 1053
Hello Today, I noticed that on my server Web Jetadmin (v10.3 SR6, Windows 2008), the HPWSProAdapter service is not working. I tried to start it and got the following error message: Error 1053: The service did not demand launch or control in a timely