read data from emparray
I have a function that I would read in pl/sql. How can I read data from it. EMPARRAY function return.FUNCTION META_PODATKI_TABEL
(ime_tabele VARCHAR2, st_napake NUMBER
)
RETURN EMPARRAY ACE
EMPARRAY is:
create or replace TYPE "EMPARRAY" as VARRAY (10000) OF VARCHAR2 (4000);
I try but nothing works.
THX
Put the function calls in the clause of a query using the TABLE from:
SQL> create or replace TYPE "EMPARRAY" as VARRAY(10000) OF VARCHAR2(4000);
2 /
Type created.
SQL> create or replace FUNCTION META_PODATKI_TABEL
2 (ime_tabele VARCHAR2, st_napake NUMBER
3 )
4 RETURN EMPARRAY AS
5 begin
6 return emparray('aaa','bbb','ccc');
7 end;
8 /
Function created.
SQL> select * from table(META_PODATKI_TABEL('x',1));
COLUMN_VALUE
------------------------------------------------------------------------------------
aaa
bbb
ccc
Max
http://oracleitalia.WordPress.com
Tags: Database
Similar Questions
-
Can read data from xls using teststand 3.5?
Hello
I use 3.5 TestStand and LabVIEW 8.je know these are quite old versions now, but we must continue with this on a test bench.
My question is how can I read data from the file xls using TestStand 3.5? I have already mentioned a few posts on this, and one response suggested that I should use "tGetExcel" using ActiveX adapter. I tried to run the test example related to "http://forums.ni.com/t5/NI-TestStand/Write-or-read-to-Excel-from-TestStand/td-p/250439/highlight/tru...", but a run-time error. He says that "the tGetExcel type library information not found. Make sure that the server is registered in the system.
TestStand 4.2, I could easily run excel at the base of operations by using the Office Excel Toolkit.
I was wondering, is there another way, I can read just .xls file data by using Teststand 3.5?
Thank you
Niraj.
Please check this example for charger of property:
C:\Program Files (x 86) \National Instruments\TestStand 3.5\Examples\LoadingLimits
This shows the limits of excel file loading.
But you can load the values of the variables-consult the help file / Reference manual for this type of step.
Also in the loader type forum search property - you can find more information.
I hope this helps.
-
How to read data from an Excel 2010 worksheet with the .xlsx extension? The data I want, it's on one of the 10 tabs in the file, I have to choose which programmatically. I have the Report Generation Toolkit for LV2012, but all the screws that come with it seem to focus around writing data to a spreadsheet Excel and make charts and whatnot. I want to * read * an Excel worksheet. Seeking answers led to many 'Open it and save it as tab delimited text', which I can't do because I need data from different tabs, and because this file is quite dynamic with many users opening and adding several times. In order to save the tab I want as a tab delimited text file per programming, I'm back a square, how to open it?
My solution would ideally fill in the blanks of: spreadsheet.xlsx---> _---> 2 or 3D data table.
Thank you
Adam
This fixes:
-
How to read data from an excel and HTML file
Hello
I write a 2D-array of string in Excel/HTML file using the generation of reports.
Can someone tell me how to get back in return, the written data, same files again and display in table format.
Thank you & best regards
Visuman
You can use activex to read data from the excel fileback to the table format... through this vi... may b this will help you...
-
Read data from table of $ E and insert in the staging table
Hi all
I'm new on ODI. I need your help to understand how to read data from a table ' E$ "and insert in an intermediate table.
Scenario:
The name of two columns, in a flat file, the employee and the employee id must be loaded into a data EMPstore +. A check constraint is added so that the data with the employee names in capital letters only to load in the data store. Check the command is set to the static movement . Right-click on the data store, select control , then check. The lines that have violated the check constraint are kept in E$ _EMP+ table.
Problem:
Problem is I want to read the data in the table E$ _EMP+ and transform in capital letters in the name of the employee and move the corrected data of E$ _EMP+ EMP+. Please advise me on how to automatically manage the 'soft' exceptions in ODI.
Thank youIf I understand, you want to change the columns in the tables of $ E and then load into the target.
Now, if you notice how ODI recycles the error, there is an incremental update to the target using the E table $ after he filled the I$ table.
I think you can do the same thing by creating an interface using the table of $ E as source and implement the business logic in this interface to fill the target.
-
Reading data from a text (JS CS3) file tabs-delimited
Hi - I'm working on a script to read data from a text file and use in a dialog box. But I hit a wall.
I used a script from a previous post that defines a variable text document when the user script he chooses from a drop-down list.
var myDialog = app.dialogs.add({name:"Map",canCancel:true});)
{with (MyDialog)}{with (dialogColumns.Add ())}
{with (borderPanels.Add ())}
staticTexts.add ({staticLabel: "choose the location :"});})
{with (dialogColumns.Add ())}
var file = File("~/Desktop/myPlacesfile.txt");leader. Open ("r");
var str = file.read ();
leader. Close();
var myPlaceList = str.split (/ [\r\n] + /);
var myPlaceMenu = dropdowns.add ({stringList:myPlaceList, selectedIndex:0});})
}
}}}
Ditto var = myDialog.show ();
if(myResult == true) {}
If (myPlaceMenu.selectedIndex == 0) {}
myPlace var = ' - undefined ";
} else {}
myPlace var = myPlaceList [myPlaceMenu.selectedIndex];
Alert (myPlace);
}myDialog.destroy ();
}That's what I do now:
The text file is in this format:
Value1 value2 [TAB]
Value1 value2 [TAB]
Value1 value2 [TAB]
I need to have the drop down dialog box show only the value 1, and after that the user selects, the script returns only the value 2. (The alert is just there to test - I'm doing something else with the variable).
Is there a way to view the first part of a tab-delimited line in the menu drop down and return the second half as a variable?
Any help would be greatly appreciated.
Thank you
One of the possibilities is that it. Create a table to the left of the values of the tab of the dialog box. Then create an object that you use it as a table of correspondence. Roughly as follows:
same thing as what you have
leader. Open ("r");
var str = file.read ();
leader. Close();
var array = str.split (/ [\r\n] + /);'pairs' are the table of correspondence
pair of var = {};
as before, 'myPlaceList' will be used for the menu drop-down
var myPlaceList = [];var v;
for (var i = 0; i)< array.length;="">
{
v = table [i] .split ('\t');
pairs [v [0]] = v [1];
myPlaceList.push (v [0]);
}Add the drop-down list as before:
var myPlaceMenu = dropdowns.add ({stringList:myPlaceList, selectedIndex:0});})
the table of 'pairs' correspondence is used as follows: pairs ['value1'] returns 'value2 '.
so in your script that would be:
myPlace var pairs = [myPlaceList [myPlaceMenu.selectedIndex]];
Peter
-
Read data from APEX_ITEM
Hi all
I searched the forums, and unfortunately I have no idea on how to go on the following.
I have the following SQL report created with APEX_ITEM. SELECT_LIST-
> select id, questions, APEX_ITEM. SELECT_LIST (p_idx = > 1, p_value = > '- Select Rating-', p_list_values = > 1, 1, 3, 3, 5, 5', p_attributes is > "style =" "color: Black;"', p_show_null = > 'YES', p_null_value = > NULL, p_null_text = > '- Select Rating-', p_item_id = > ' the ROWNUM # f01_ #', p_item_label = > ' label for ROWNUM f01_ # #', p_show_extra = > 'NO') 'Rating' of the sqa_customer_questions by id order
Query runs as you like, but I don't know how to accept the values of the rows. I would like to insert the values of the selection list and their respective ID for all the entries in another table. I'm not able to find out how I could read data from these APEX_ITEMs and reach my goal.
Any help is appreciated.
Kind regards
Jean-PierreNope,
Can you put the app on apex.oracle.com
In any case if you have a report like this
SELECT id, something FROM table
You can do it for the
SELECT id||APEX_ITEM.HIDDEN(2,id) id, something FROM table
And then reference it as APEX_APPLICATION. G_F02 (the first parameter provided to apex_item determine the number) in your process.
See you soon
Ben
http://www.munkyben.WordPress.com
Don't forget to mark the answers useful or correct ;) -
Hello to everyone
I use oracle forms 6i. I want to read data from a serial port. How can I do this?HII,
You may search for any existing OCX or VBX component capable of doing this job.
Better compliance
Skyniazi -
HP Pavilion X 2: HP Pavilion XP cannot read data from USB DVDs
We bought a HP 10-ND200ND (HP pavilion X 2) in the Mediamarkt and tried to install Microsoft Office from a DVD via a DVD USB Samsung player. This was not possible. According to Support Mediamarkt this product is a Tablet and so cannot read data DVD´s. Only General to play music. To buy a laptop computer for this application. The operating system is Windows 10 (32 bit). Is that correct. Please advice.
Hi Banhien, the cause is known. I have seen other comments on the HP forum and concluded that the reader needs more power than is available through the USB connector of. I added a hub that can provide power to its connectors USB, HP X 2, by car and the problem has been resolved! It was noted that the mini USB is also more powerful and with the type of adapter USB USB C it might also work, but I did not test this, because I do not have such an adapter. It's odd that such a mini can provide more power. It is surprising that the HP Pavilion X 2 does not have a powerful USB. But the problem is solved. Thanks for your response! Best regards, wiely
-
How to read data from several files and add columns in a single file
Hi guys,.
I have a problem in adding data from files in different columns. I have the attachment a file A and B which I am reading and not able to get the data in the Result.txt file. Please give your opinion on how can I do this
You must add the data of all files before proceeding with a single entry.
-
read data from a database and display them in a listbox
Hello
I want to read the data from a table in a database, so I want to display 1 column in a listbox.
I read the data from database, but I can't display in a listbox control.
can someone help me please?
Your VI is way too complicated. If you get a 2D array and you want just the second column, you should only use the Array Index to take off from the second column. That's all.
Once again, the structure of your sequence is completely useless.
I will reiterate my statement about to spend some time with the LabVIEW tutorials.
-
Read data from the text column in report
I have a sql report with an editable column created using apex_item.text (5);
I tried to read and insert the data from the column in a table, using this process
because me in 1.apex_application.g_f05.count
loop
insert into table (col_a, col_b)
values (apex_application.g_f05 (i), apex_application.g_f04 (i));
commit;
end loop;
end;
but without success.
The message when I execute is ORA-01403: no data found.
What is the error?HI lkefur,
Try to debug it.
The reason behind this is that your report do not have the of4, fo5 (one) as text fields at all.
try to delete value n f04 normal text and check, even to f05.
I think that most probably the reason whether shud.You can view only the source of the page and check which names are your text fields of the report to help.
Kind regards
Nandini thakur. -
Read data from the file into ArrayList
Hello
I have a class called product describing the charactristics of products such as the name, id, price etc.. I have the whole set and use the get methods in my class of product. I store the information on my products in an ArrayList. I can write the information on my products in a file.
so far, but so good...
I want now to re-read the data from the file and store it in my list of tables again. I know I can use Parsing and read in data in an ArrayList as String, int, double etc. but is anyway to read in from 'Product' (then it would be up to my class of product)?
Thank you in advance.1. are you aware of serialization?
2. get a name, I love not dealing with numbers.DB
-
reading data from a variable, separated by "|" and insert into the table
Hi experts,
I have a file on FTP and I read the file. Now what I have to do is to separate the data and insert them into a table. I have already created the table with the required fields.
How can I get data from str?
code below
declare
File1 UTL_FILE. TYPE_DE_FICHIER;
VARCHAR2 (1000) filename: = "GTECHFILES";
Long str;
Start
File1: = UTL_FILE. FOPEN (filename, 'agent_dump_csv.rep', 'r', 32767);
loop
UTL_FILE. GET_LINE (File1, str);
-dbms_output.put_line (' value is :'|| to_char (STR));
end loop;
UTL_FILE. FCLOSE (file1);
exception
When no_data_found then
dbms_output.put_line ("END OF FILE");
UTL_FILE. FCLOSE (file1);
while others then
UTL_FILE. FCLOSE (file1);
dbms_output.put_line (' ERROR: ' |) SQLCODE |': ' | SQLERRM);
end;You must use ' \ [^ |] +' like regexp:
SQL> create table mytab (a varchar2(20), b varchar2(20), c varchar2(20)); Tabella creata. SQL> declare 2 str varchar2(100):= 'qwureer|iftsdfsuif|123134'; 3 begin 4 insert into mytab 5 values (regexp_substr(str,'[^|]+',1,1), 6 regexp_substr(str,'[^|]+',1,2), 7 regexp_substr(str,'[^|]+',1,3)); 8 end; 9 / Procedura PL/SQL completata correttamente. SQL> select * from mytab; A B C -------------------- -------------------- -------------------- qwureer iftsdfsuif 123134
Max
[My Italian blog Oracle | http://oracleitalia.wordpress.com/2010/01/17/supporto-di-xml-schema-in-oracle-xmldb/] -
I would like to read data (sepereated of numbers with spaces) and write them in a table. That's what I have so far.
Thank you.
Try to use "worksheet reading File.vi. The only thing you will obviously need to change is the delimiter character, which seems to be a white. In the default configuration, spreadsheet files using the tabs as separators...
Norbert
Maybe you are looking for
-
I had to install a new computer. I moved the profile data as described here. A new folder (just the icon) appeared out of nowhere (it cannot be moved, renamed, deleted, etc.). When I highlight a message and choose Message-> create message filters, I
-
15 - F305dx: need to Win 7 32 bit USB Driver for HP 15-F305dx
Downgraded my victory 10 64-bit down for Win 7 32 bit software compatibility reasons. I am unable to get two usb ports on the left side of work. Is it the driver and I have no idea what manufacturer to go or what model to look it up. If anyone knows
-
Your comments on Mac password managers
I'm ready to purchase a password for my MacBook Air and iPhone management application. 1Password based on comments from MacWorld and others, seems to be the right choice. Unfortunately, customers of the most recent 1Password version 6 has many bugs.
-
Report Generation Toolkit makes Excel Flash annoyingly
When I use the report generation tool, I have inserted some graphs of my data in the report. If I start with the 'normal' Excel window the user can see each data item such that he is put in Excel. If I start with the window "minimized" Excel then the
-
I want to do a simulation of increasing numbers and decrements up to a point. Let's say that I start with a constant of 10. I want to increment this 10 until it reaches 50. When he reached 50, I want to decrement, until the return to 10. And from the