split comma-delineated in table 1 d complex
I have delimited string in this format
[0.866405665874481,0.127425819635391,0.983153462409973,-0.0711551383137703,0.955700755119324,-0.27884304523468,0.787182509899139,-0.501964211463928,0.512355387210846,-0.687117278575897,0.177220240235329,-0.777789652347565,-0.0876994803547859,-0.792799115180969,-0.324512422084808,-0.736825287342072,-0.517065346240997,-0.627932071685791,-0.666604995727539,-0.471743047237396,-0.767350137233734,-0.287838608026505,-0.819185018539429,-0.0853987112641335,-0.81872695684433,0.123056441545486,-0.761552691459656]
The data contain pairs of complex numbers. The first 2 numbers is a pair, a pair of next 2 numbers, next pair...
How can I extract the number pairs and make a complex set of 1 d?
This is the expected output:
(0.866405665874481,0.127425819635391),(0.983153462409973,-0.0711551383137703),(0.955700755119324,-0.27884304523468),(0.787182509899139,-0.501964211463928),(0.512355387210846,-0.687117278575897),(0.177220240235329,-0.777789652347565),(-0.0876994803547859,-0.792799115180969),(-0.324512422084808,-0.736825287342072),(-0.517065346240997,-0.627932071685791),(-0.666604995727539,-0.471743047237396),(-0.767350137233734,-0.287838608026505),(-0.819185018539429,-0.0853987112641335),(-0.81872695684433),(0.123056441545486,-0.761552691459656)
All gurus pls advise
I used the string of worksheet to the table, table to decimate, then Re / Im at the complex.
Tags: NI Software
Similar Questions
-
Split comma delimited string CONNECT BY Clause
Hello
I had a problem by dividing a strings separated by commas into lines.
I explain the following use cases:
I have an x in table
-> create table x (id number, int_status varchar2 (100), c_ref varchar2 (30), s_ref varchar2 (30));
I inserted values in the table:
insert into x (id, int_status, c_ref, s_ref) values (1, 'a1, a2, a3, a4 ', 'A',' AS');
insert into x (id, int_status, c_ref, s_ref) values (1,'b1, b2, b3, b4 ',' B', 'BS');
insert into x (id, int_status, c_ref, s_ref) values (1,'c1, c2, c3, c4 ", 'C', null);
insert into x (id, int_status, cust_ref, site_ref) values (1, NULL, would be ', NULL);
I need to split the int_status separated by commas into individual lines. This means that my result is:
. What I need or are looking as expected result:
-----------
1, has, HAVE, a1
1, has, HAVE, a2
1, has, HAVE, a3
1, has, HAVE, a4
1, B, BS, b1
1, B, BS, b2
1, B, BS, b3
1, B, BS, b4
C, 1, null, c1
C, 1, null, c2
C, 1, null, c3
C, 1, null, c4
I currently have a solution using Regex. But this solution uses the UNIQUE keyword.
The solution that I currently have:
Select UNIQUE c_ref, s_ref, regexp_substr (int_status, "[^,] +', 1, level") error_code
x
connect regexp_substr (int_status, "[^,] +', 1, level") is not null;
I need a better solution. Pointers?
Thank you
CherifHi Omar,.
I mentioned the solution of Odie for similar problem some time ago...
and in my opinion the easiest to solve your task would be:SELECT id,c_ref,s_ref,str error_code FROM x_imp, XMLTABLE ('ora:tokenize($v, ",")' PASSING int_status AS "v" COLUMNS str VARCHAR2 (12) PATH '.');
output:
ID C_REF S_REF ERROR_CODE 1 A AS a1 1 A AS a2 1 A AS a3 1 A AS a4 1 B BS b1 1 B BS b2 1 B BS b3 1 B BS b4 1 C c1 1 C c2 1 C c3 1 C c4
See you soon,.
Manik. -
sort numbers separated by a comma in a table
The attached VI should accept two numbers, separated by commas, and then use the first number to set a Boolean value in a table. Then the next number must set the corresponding location of the array with the value.
For example, for a table of 5 elements:
User input is 3, 2. The VI will produce the following two tables:
F 0
F 0
T 2
F 0
F 0
-
Value separated by commas in a table column to get each field separtely?
Hello
I have the table that a column has values separated by commas in it. This table is populated using SQL LOADER, which is staging table.
I need to retrieve the records of these values separated by commas.
format of. CSV file is as -
A separate file of pipes.
DHCP-1-1-1. WNLB-CMTS-01-1,WNLB-CMTS-02-2|
DHCP-1-1-2. WNLB-CMTS-03-3,WNLB-CMTS-04-4,WNLB-CMTS-05-5|
DHCP-1-1-3. WNLB-CMTS-01-1.
DHCP-1-1-4. WNLB-CMTS-05-8,WNLB-CMTS-05-6,WNLB-CMTS-05-0,WNLB-CMTS-03-3|
DHCP-1-1-5 | WNLB-CMTS-02-2,WNLB-CMTS-04-4,WNLB-CMTS-05-7|
CREATE TABLE link_data (dhcp_token VARCHAR2 (30), cmts_to_add VARCHAR2 (200), cmts_to_remove VARCHAR2 (200));
insert into link_data values ('dhcp-1-1-1','wnlb-cmts-01-1,wnlb-cmts-02-2',null);
insert into link_data values ('dhcp-1-1-2','wnlb-cmts-03-3,wnlb-cmts-04-4,wnlb-cmts-05-5',null);
insert into link_data values ('dhcp-1-1-3','wnlb-cmts-01-1',null);
insert into link_data values ('dhcp-1-1-4','wnlb-cmts-05-8,wnlb-cmts-05-6,wnlb-cmts-05-0,wnlb-cmts-03-3',null);
insert into link_data values ('dhcp-1-1-5','wnlb-cmts-02-2,wnlb-cmts-04-4,wnlb-cmts-05-7',null);
Here the cmts_to_add column has comma separted
I need values such as -.
> for wnlb-cmts-01-1,wnlb-cmts-02-2 > > wnlb-CMTS-01-1
> > wnlb-CMTS-02-2
> for wnlb-cmts-03-3,wnlb-cmts-04-4,wnlb-cmts-05-5 > > wnlb-CMTS-03-3
> > wnlb-CMTS-04-4
> > wnlb-CMTS-05-5
And so on...
I do this because it's the staging table and I load data into the main tables using this table.
This second field contain different values as the simple comma-delimited string.
I need to write a PLSQL block to insert into the main table after checking as if dhcp-1-1-1 and wnlb-CMTS-01-1 is present in the main table so not to introduce other insert a new record.
To meet this requirement, I need to get the distinct value of the cmts_to_add column to insert into DB.
the value will be inserted as dhcp-1-1-1_TO_wnlb-cmts-01-1 and dhcp-1-1-1_TO_wnlb-cmts-02-2 for the first row of the array of link_data.
The process will also be same for the rest of the lines.
I use the function substrt and instr for this problem, but its does not work.
declare
cursor c_link is select * from link_data.
l_rec_link link_data % rowtype;
l_dhcp varchar2 (30);
l_cmts varchar2 (20000);
l_cmts_1 varchar2 (32000);
Start
Open c_link;
loop
extract the c_link in l_rec_link;
l_cmts: = l_rec_link.cmts_to_add;
loop
l_cmts_1: = substr (l_cmts, 1, instr(l_cmts,',')-1);
dbms_output.put_line (l_cmts_1);
end loop;
dbms_output.put_line(l_dhcp||) e '|| l_cmts);
When the output c_link % notfound;
end loop;
exception
while others then
Dbms_output.put_line ('ERROR' |) SQLERRM);
end;
Its a peusdo code I write, but it also gives me the wrong answer it gives me error ORA-20000: ORU-10027: buffer overflow, limit of 20000 bytes
I am using-
Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
Please tell me if my problem isn't clear!
Hello
little 'trick': Add a comma at the end of the chain... So it's easier to deal with the fact that there are zero, one, or N components...
CREATE TABLE link_data (dhcp_token VARCHAR2 (30), cmts_to_add VARCHAR2 (200), cmts_to_remove VARCHAR2 (200));
insert into link_data values ('dhcp-1-1-1','wnlb-cmts-01-1,wnlb-cmts-02-2',null);
insert into link_data values ('dhcp-1-1-2','wnlb-cmts-03-3,wnlb-cmts-04-4,wnlb-cmts-05-5',null);
insert into link_data values ('dhcp-1-1-3','wnlb-cmts-01-1',null);
insert into link_data values ('dhcp-1-1-4','wnlb-cmts-05-8,wnlb-cmts-05-6,wnlb-cmts-05-0,wnlb-cmts-03-3',null);
insert into link_data values ('dhcp-1-1-5','wnlb-cmts-02-2,wnlb-cmts-04-4,wnlb-cmts-05-7',null);
COMMIT;SET SERVEROUT ON
DECLARE
l_cmts VARCHAR2 (200 CHAR);
l_cmts_1 VARCHAR2 (200 CHAR);
BEGIN
FOR r IN (SELECT dhcp_token, cmts_to_add |) ',' cmts
OF link_data
)
LOOP
l_cmts: = r.cmts;
l_cmts_1: = SUBSTR (l_cmts, 1, INSTR (l_cmts, ",") - 1);
While l_cmts_1 IS NOT NULL
LOOP
DBMS_OUTPUT. Put_line (r.dhcp_token |) '|' || l_cmts_1);
l_cmts: = SUBSTR (l_cmts, INSTR (l_cmts, ",") + 1);
l_cmts_1: = SUBSTR (l_cmts, 1, INSTR (l_cmts, ",") - 1);
END LOOP;
END LOOP;
END;
/
DHCP-1-1-1. WNLB-CMTS-01-1
DHCP-1-1-1. WNLB-CMTS-02-2
DHCP-1-1-2. WNLB-CMTS-03-3
DHCP-1-1-2. WNLB-CMTS-04-4
DHCP-1-1-2. WNLB-CMTS-05-5
DHCP-1-1-3. WNLB-CMTS-01-1
DHCP-1-1-4. WNLB-CMTS-05-8
DHCP-1-1-4. WNLB-CMTS-05-6
DHCP-1-1-4. WNLB-CMTS-05-0
DHCP-1-1-4. WNLB-CMTS-03-3
DHCP-1-1-5 | WNLB-CMTS-02-2
DHCP-1-1-5 | WNLB-CMTS-04-4
DHCP-1-1-5 | WNLB-CMTS-05-7Best regards
Bruno Vroman.
-
Why split cells in a table to work but merge cells is not yet highlighted in my choices
alter - table - cell splitting works very well. I can select a line of cells and try to change merger - table - but the choice of the merger is not yet highlighted
To modify > table > merge cells to work, many cells had to be selected. If you use Dreamweaver CC in Live View mode, a single element can be selected simultaneously. Therefore, merge cells is disabled. Merge the cells will also be disabled if you select a table row, because the cells inside the line that should be chosen, not the line itself.
Switch to Design view to merge cells.
-
How engage us only one table in a session without validation other tables.
COMMIT is not specific table. It's operations. If you perform DML operations on multiple tables in a single transaction and commit to the end, all changes to the table will be committed. You can partially achieve you objective is by marching the DML first on the table that you want to validate, then validation and DML for the other tables.
OR by using the PRAGMA AUTONOMOUS TRANSACTION for transactions that don't have that tables you want to commit to.You can post the actual code to give a better idea of your problem.
-
Underlying tables to a complex view
Hi all
I'm trying to find a sql that would help me to list the names of the underlying tables for a set of complex views. Someone at - it a script that I could use - it would save me trying to find/make one.
Thank youTry this
SELECT * FROM all_dependencies WHERE TYPE = 'VIEW' AND owner = '&owner' AND NAME LIKE 'XX_%'
Sandeep Gandhi
-
Commit performance on table with Fast Refresh MV
Hello world
Try to wrap your head around fast refresh performance and why I see (what I consider) high disk numbers / query associated with the update of the MV_LOG in a TKPROF.
The installation program.
(Oracle 10.2.0.4.0)
Database table:
MV was createdSQL> desc action; Name Null? Type ----------------------------------------- -------- ---------------------------- PK_ACTION_ID NOT NULL NUMBER(10) CATEGORY VARCHAR2(20) INT_DESCRIPTION VARCHAR2(4000) EXT_DESCRIPTION VARCHAR2(4000) ACTION_TITLE NOT NULL VARCHAR2(400) CALL_DURATION VARCHAR2(6) DATE_OPENED NOT NULL DATE CONTRACT VARCHAR2(100) SOFTWARE_SUMMARY VARCHAR2(2000) MACHINE_NAME VARCHAR2(25) BILLING_STATUS VARCHAR2(15) ACTION_NUMBER NUMBER(3) THIRD_PARTY_NAME VARCHAR2(25) MAILED_TO VARCHAR2(400) FK_CONTACT_ID NUMBER(10) FK_EMPLOYEE_ID NOT NULL NUMBER(10) FK_ISSUE_ID NOT NULL NUMBER(10) STATUS VARCHAR2(80) PRIORITY NUMBER(1) EMAILED_CUSTOMER TIMESTAMP(6) WITH LOCAL TIME ZONE SQL> select count(*) from action; COUNT(*) ---------- 1388780
Fast refresh works fine. And the newspaper is kept small enough.create materialized view log on action with sequence, rowid (pk_action_id, fk_issue_id, date_opened) including new values; -- Create materialized view create materialized view issue_open_mv build immediate refresh fast on commit enable query rewrite as select fk_issue_id issue_id, count(*) cnt, min(date_opened) issue_open, max(date_opened) last_action_date, min(pk_action_id) first_action_id, max(pk_action_id) last_action_id, count(pk_action_id) num_actions from action group by fk_issue_id; exec dbms_stats.gather_table_stats('tg','issue_open_mv') SQL> select table_name, last_analyzed from dba_tables where table_name = 'ISSUE_OPEN_MV'; TABLE_NAME LAST_ANAL ------------------------------ --------- ISSUE_OPEN_MV 15-NOV-10 *note: table was created a couple of days ago * SQL> exec dbms_mview.explain_mview('TG.ISSUE_OPEN_MV'); CAPABILITY_NAME P REL_TEXT MSGTXT ------------------------------ - -------- ------------------------------------------------------------ PCT N REFRESH_COMPLETE Y REFRESH_FAST Y REWRITE Y PCT_TABLE N ACTION relation is not a partitioned table REFRESH_FAST_AFTER_INSERT Y REFRESH_FAST_AFTER_ANY_DML Y REFRESH_FAST_PCT N PCT is not possible on any of the detail tables in the mater REWRITE_FULL_TEXT_MATCH Y REWRITE_PARTIAL_TEXT_MATCH Y REWRITE_GENERAL Y REWRITE_PCT N general rewrite is not possible or PCT is not possible on an PCT_TABLE_REWRITE N ACTION relation is not a partitioned table 13 rows selected.
When I update a row in the base table:SQL> select count(*) from mlog$_action; COUNT(*) ---------- 0
What follows, I get via tkprof.var in_action_id number; exec :in_action_id := 398385; UPDATE action SET emailed_customer = SYSTIMESTAMP WHERE pk_action_id = :in_action_id AND DECODE(emailed_customer, NULL, 0, 1) = 0 / commit;
Could someone explain why the the SELECT/UPDATE/DELETE on MLOG$ _ACTION if 'expensive' when it should be only 2 rows (the old value and the new value) in this newspaper after an update? I could do to improve the performance of the update?******************************************************************************** INSERT /*+ IDX(0) */ INTO "TG"."MLOG$_ACTION" (dmltype$$,old_new$$,snaptime$$, change_vector$$,sequence$$,m_row$$,"PK_ACTION_ID","DATE_OPENED", "FK_ISSUE_ID") VALUES (:d,:o,to_date('4000-01-01:00:00:00','YYYY-MM-DD:HH24:MI:SS'),:c, sys.cdc_rsid_seq$.nextval,:m,:1,:2,:3) call count cpu elapsed disk query current rows ------- ------ -------- ---------- ---------- ---------- ---------- ---------- Parse 1 0.00 0.01 0 0 0 0 Execute 2 0.00 0.03 4 4 4 2 Fetch 0 0.00 0.00 0 0 0 0 ------- ------ -------- ---------- ---------- ---------- ---------- ---------- total 3 0.00 0.04 4 4 4 2 Misses in library cache during parse: 1 Misses in library cache during execute: 1 Optimizer mode: CHOOSE Parsing user id: SYS (recursive depth: 1) Rows Row Source Operation ------- --------------------------------------------------- 2 SEQUENCE CDC_RSID_SEQ$ (cr=0 pr=0 pw=0 time=28 us) Elapsed times include waiting on following events: Event waited on Times Max. Wait Total Waited ---------------------------------------- Waited ---------- ------------ db file sequential read 4 0.01 0.01 ******************************************************************************** ******************************************************************************** update "TG"."MLOG$_ACTION" set snaptime$$ = :1 where snaptime$$ > to_date('2100-01-01:00:00:00','YYYY-MM-DD:HH24:MI:SS') call count cpu elapsed disk query current rows ------- ------ -------- ---------- ---------- ---------- ---------- ---------- Parse 1 0.00 0.01 0 0 0 0 Execute 1 0.94 5.36 55996 56012 1 2 Fetch 0 0.00 0.00 0 0 0 0 ------- ------ -------- ---------- ---------- ---------- ---------- ---------- total 2 0.94 5.38 55996 56012 1 2 Misses in library cache during parse: 1 Misses in library cache during execute: 1 Optimizer mode: CHOOSE Parsing user id: SYS (recursive depth: 1) Rows Row Source Operation ------- --------------------------------------------------- 0 UPDATE MLOG$_ACTION (cr=56012 pr=55996 pw=0 time=5364554 us) 2 TABLE ACCESS FULL MLOG$_ACTION (cr=56012 pr=55996 pw=0 time=46756 us) Elapsed times include waiting on following events: Event waited on Times Max. Wait Total Waited ---------------------------------------- Waited ---------- ------------ db file scattered read 3529 0.02 4.91 ******************************************************************************** select dmltype$$, max(snaptime$$) from "TG"."MLOG$_ACTION" where snaptime$$ <= :1 group by dmltype$$ call count cpu elapsed disk query current rows ------- ------ -------- ---------- ---------- ---------- ---------- ---------- Parse 1 0.00 0.00 0 0 0 0 Execute 1 0.00 0.00 0 0 0 0 Fetch 2 0.70 0.68 55996 56012 0 1 ------- ------ -------- ---------- ---------- ---------- ---------- ---------- total 4 0.70 0.68 55996 56012 0 1 Misses in library cache during parse: 1 Misses in library cache during execute: 1 Optimizer mode: CHOOSE Parsing user id: SYS (recursive depth: 1) Rows Row Source Operation ------- --------------------------------------------------- 1 SORT GROUP BY (cr=56012 pr=55996 pw=0 time=685671 us) 2 TABLE ACCESS FULL MLOG$_ACTION (cr=56012 pr=55996 pw=0 time=1851 us) Elapsed times include waiting on following events: Event waited on Times Max. Wait Total Waited ---------------------------------------- Waited ---------- ------------ db file scattered read 3529 0.00 0.38 ******************************************************************************** delete from "TG"."MLOG$_ACTION" where snaptime$$ <= :1 call count cpu elapsed disk query current rows ------- ------ -------- ---------- ---------- ---------- ---------- ---------- Parse 1 0.00 0.00 0 0 0 0 Execute 1 0.71 0.70 55946 56012 3 2 Fetch 0 0.00 0.00 0 0 0 0 ------- ------ -------- ---------- ---------- ---------- ---------- ---------- total 2 0.71 0.70 55946 56012 3 2 Misses in library cache during parse: 1 Misses in library cache during execute: 1 Optimizer mode: CHOOSE Parsing user id: SYS (recursive depth: 1) Rows Row Source Operation ------- --------------------------------------------------- 0 DELETE MLOG$_ACTION (cr=56012 pr=55946 pw=0 time=702813 us) 2 TABLE ACCESS FULL MLOG$_ACTION (cr=56012 pr=55946 pw=0 time=1814 us) Elapsed times include waiting on following events: Event waited on Times Max. Wait Total Waited ---------------------------------------- Waited ---------- ------------ db file scattered read 3530 0.00 0.39 db file sequential read 33 0.00 0.00 ********************************************************************************
Let me know if you need more info... would be happy to provide.My guess would be that you were once a very large transaction that inserted a large number of rows in this table. So the table segment is big enough now and the high watermark is average at the end of this segment, causing a full scan table to analyze a large number of empty blocks and retrieve the two lines.
You can issue a truncation on this table of $ MLOG: which would free up the empty blocks and brings back the high-watermark in the first block.
-
How to give an input value to operate what split of DOD proc table?
Hi all
Here's the function (function str2tbl)
used to split the string table (for example: "1,2,3,4") in a single string.
This function uses the array of strings (which should be split) as an input (like 'p_str IN varchar2') parameter.
I would like to divide the array of strings that I'm generating by a procedure called 'proc1 '.
In this procedure, the array of result of channels are stroed in a parameter called "my_str" (like my_str: = "1,2,3,4").
How could I use the values in this function?
I could mention as "proc1.my_str" as an input to this function?
Another question, once my function returns the values as
Column1
-----------
1
2
3
4
How do I pass this value to .NET?
Thanks in advancecreate or replace function str2tbl ( p_str in varchar2, p_delim in varchar2 default ',' ) return str2tblType as l_str long default p_str || p_delim; l_n number; l_data str2tblType := str2tblType(); begin loop l_n := instr( l_str, p_delim ); exit when (nvl(l_n,0) = 0); l_data.extend; l_data(l_data.count) := ltrim(rtrim(substr(l_str,1,l_n-1))); l_str := substr( l_str, l_n+1 ); end loop; return l_data; end;
Published by: user10641405 on June 9, 2009 08:46Could not get into too much detail. Have no database here.
loop of the table referring to the procedure.
Declare type str is table of varchar2(4000) index by binary_integer; my_str str; arr_str is table of str2tblType%type index by binary_integer; begin my_str := proc_used(); for i in my_str.first..my_str.last loop arr_str(i):=str2tbl(my_str); end loop; exception block here ...... end;
OK let me explain.
you have this array of strings coming out of the procedure that will my_str.
Then see the for loop. We are looping through this channel and passing the values to the function.
the data type arr_str is array of arrays.
We put the berries coming out of the service in arr_str.so.
arr_str (1) will have a table that is the result of function set (my_str (1));
arr_str (2) will have a table that is the result of function set (my_str (2));If you need to pass these berries to .NET you loop through arr_str as we did for my_string and pass an array at a time.
Kind regards
G.
-
Values separated by a nested as comma from string table
I would insert the contents of a table nested in the form of comma-separated values in a string.
For example, I created:
CREATE TYPE u_results AS TABLE OF VARCHAR2 (10);
/
CREATE TABLE example_table)
number of obj_id,
obj_results u_results)
NESTED TABLE obj_results STORE AS obj_results_t;
INSERT INTO example_table (obj_id, obj_results) VALUES (1, u_results ('OK', 'NOK', 'NN'));
INSERT INTO example_table (obj_id, obj_results) VALUES (2, u_results ('OK', 'NOK'));
CREATE TABLE example_table2)
number of obj_id,
obj_results2 VARCHAR2 (100));
So, in the example_table2 table I would have obj_results values in obj_results2 as string separated by commas.
for example
OBJ_ID obj_results2
1 OK, NOK, NN
2 OK, NOK
Any ideas? Thank you
G.SQL> create type u_results as table of varchar2 (10); / Type created. SQL> select rtrim (xmlagg (xmlelement (e, column_value || ',')).extract ('//text()'), ',') csv from table (u_results ('AA', 'BB')) t / CSV ---------- AA,BB 1 row selected. SQL> drop type u_results / Type dropped.
-
Problem using the list separated by commas with nested table element
Hello
I have a list separated by commas like this:
And want to create a function that creates a where clause clause for each element with an output like this:H23004,H24005,T7231,T8231,T9231
Here's my test function that is not working properly:UPPER('H23004') IN (UPPER(charge)) OR UPPER('H23005') IN (UPPER(charge)) OR UPPER('T7231') IN (UPPER(charge)) OR UPPER('T8231') IN (UPPER(charge)) OR UPPER('T9231') IN (UPPER(charge))
The out put looks like this:create or replace function FNC_LIST_TO_WHERE_CLAUSE(v_list in VARCHAR2) return varchar2 is -- declaration of list type TYPE batch_type IS TABLE OF pr_stamm.charge%TYPE; -- variable for Batches v_batch batch_type := batch_type('''' || replace(v_list,',',''',''') || ''''); return_script varchar2(1000); BEGIN -- loop as long as there are objects left FOR i IN v_batch.FIRST .. v_batch.LAST LOOP --DBMS_OUTPUT.PUT_LINE(offices(i)); -- create where clause IF i = 1 THEN return_script := 'UPPER(' || v_batch(i) || ') IN (UPPER(charge))'; ELSE return_script := return_script || ' OR UPPER(' || v_batch(i) || ') IN (UPPER(charge))'; END IF; END LOOP; return (return_script); end;
I don't know what I did wrong? It calculates the amount of the incorrect array element! (v_batch. Must be 5)UPPER('H23004','H24005','T7231','T8231','T9231') IN (UPPER(charge))
v_batch. FIRST = 1
v_batch. LAST = 1
Kind regards
TobiasTry this...
declare
text varchar2 (1000): = "H23004, H24005, T7231, T8231, T9231;
v_where varchar2 (1000);
Start
Text: = text | «, » ;
While instr (text, ',') <> 0
loop
v_where: = v_where | ' UPPER ("': substr (Text, 1, InStr(Text,',',1)-1) |") ' IN (UPPER (load)) OR ';
text: = substr (text, instr(text,',',1) + 1);
end loop;
v_where: = substr (v_where, 1, length (v_where)-3);
dbms_output.put_line (v_where);
end;convert it to function...
-
Hi guys
I have signal consisting of a few numbers... .they are declared separately to Labview as x, y, z.
So I need a way to group 3 these items in a table (for example) as x refes to a data point, number there is tension and z is the current.
I would then separate the 'picture' in a XY Chart for I draw vs V.
Any suggestions?
Rgards
B
Hi Barrys,
I'm not very clear on your doubts. I guess that if you can make a chart of your x y z-values, then you can yourself. See the attached example. I made a picture of a set of values. Instead of the constant I've used, you can read directly in your worksheet. I hope this helps.
Kind regards
Amine31(Bravo to give good answers, mark it as a Solution If your problem is resolved)
-
How to get the data in separetd by commas in a table?
Hi all
I need to a function or a procudere for updating the data as below.
sampale data - these data are already in the table like this format.
emp table
-------------------
EmpName emplocation
KOR DESTREEZ
Bangalore DESTREEZ
DESTREEZ us
result in db must be like that.
EmpName emplocation
DESTREEZ kor, bangalore, us
Thank you
Dale
Hello
cyb12083 wrote:
I guess you are looking for something like this:
SELECT empname, emplocation WITHIN GROUP (ORDER BY emplocation) listagg (emplocation, ',')
WCP
GROUP BY empname;
I guess that's what Ishan suggested for 2 hours before you did.
What is the point of simply repeat someone else starting from the same thread?
-
Insert some values into multiple tables. One of the tables has a complex primary key.
Hello, I am using Jdeveloper version 11.1.2.3.0
I have a FORM_TYPE table and another table Str. The table of Str is used to translate the strings from the name of the table which are read from another program from the database and used to generate forms...
The FORM_TYPE table has a relationship with the table of STR via formtype.title_str_id = str.str_id.
STR. table has a primary key which is based on the mf_language and str_id. columns I generated the entity for the table of STR, but impossible to insert new values of add-on application for some reason any... It is said that recording invalidates its own entity...
I am trying to create a table that will be editable and will have the column Description, name, cdes in English, Str in French etc...
To create a Form_Type and at the same time insert new values for each language. But can not do the inserts of the new work of STR...
Also the FormType.TITLE_STR_ID already has a lot of null values in the database.
SELECT FormType.DESCRIPTION,
FormType.FORM_TYPE_ID,
FormType.NAME,
FormType.PAPER_REPORT_FORMAT,
FormType.PAPER_REPORT_NAME,
FormType.TITLE_STR_ID,
in. En_str str,
in. STR_ID,
en.object_name en_object_name,
Fr. Str,
Fr. STR_ID,
Fr.object_name,
of the. Str,
of the. STR_ID,
du.object_name,
BG.Str,
BG. STR_ID,
BG.object_name
OF FORM_TYPE FormType.
(select str.str_id, str.mf_language_id, str.str, str.object_name
of mf_language ml, str
where ml.mf_language_id = str.mf_language_id
and ml.code = 'fr') en
(select str.str_id, str.str, str.object_name
of mf_language ml, str
where ml.mf_language_id = str.mf_language_id
and ml.code = 'fr') en,.
(select str.str_id, str.str, str.object_name
of mf_language ml, str
where ml.mf_language_id = str.mf_language_id
and ml.code = 'from'),
(select str.str_id, str.str, str.object_name
of mf_language ml, str
where ml.mf_language_id = str.mf_language_id
and ml.code = 'bg') bg
WHERE
FormType.title_str_id = en.str_id and
FormType.title_str_id = fr.str_id and
FormType.title_str_id = du.str_id and
FormType.title_str_id = bg.str_id
Each table that you want to update must have its own entity object. You need to connect it to an another VO/OS using the associations/view links
-
Split columns from the table to the tabs
Hello world
I want to create an application where I retrieve data from a database table and display divided into tabs.
So I want tab1 to display columns 1 to 5, tab2 to display columns etc. from 6 to 10.
How can I do?
Thank you!user12169513,
Here's a way to do it.Let's say you have col1, col2, col3, col4 in the table. Col1 is common, and you want to show col1, col2 on Tab1, Tab2 Col3 Col1 and Col1, Col4 on tab 3.
1 create three pages, tell page 2, 3 and 4 have the queris as. Choose the position of the body region 3 (default)
Select col1, col2 from... on Pag2
Select col1, col3 from... on Pag3
Select col1, col4... on Pag4
2. next, create a list with three entries. Tab1 pointing to Page2, Tab2 pointing to page 3 and tab 3 on Page4
3. on pages 2, 3 and 4, add a list region in Boby 01 or Breadcrump (anythign above 03) on the list created
4. change the regions from the list and change the model override list to List of tabbed browsingThe other way is to use the tabs pointing to the Pages 2,3,4.
Kind regards
PS: Its nice when I know he's one human being at the other end with a name
Published by: Dominique on August 12, 2010 19:00
Maybe you are looking for
-
Re: update type Intel Management Engine Interface
Simply receive uprgade notes... * heci - 20150320101654.zip *.Data di ultima changes 20/03/15Ragione social IntelType Intel Management Engine Interface Whatever it is, what to do? It is necessary? It is safe?Thank youGiovanni
-
Have seen similar positions, but no one says that it has been solved. I got this cushion idela U410 a year ago and it worked normally. A few months ago, he began to start very slowly when power cycles. A hibernation has been rapid. Now it never rises
-
Why can I not use shift to select several thumbnails of Pages?
Why can I not use the SHIFT key to select several thumbnails of Pages? I need to transfer several pages in the Pages of a document to another document, and I can't select these multiple pages in the thumbnails by pressing the shift or command key.
-
Can you get it someone please let me know how to stop my officejet 6500 to print a summary with file information page after printing a word document?
-
LabelFields in the pop-up screen centering
I am centering a PopUp screen and add a few LabelFields which must be centered too. I put the position of the Popup manually, but the LabelFields aren't always align properly... What have I done wrong? The PopupScreen position which focuses more or l