Fill the table with random values
Another thing I've come across is this:the table name is LOR, who has 3 fields NUMBER, DATA, TEXT with number, date and varchar2 data type.
On a page, I have a text field where if I write 3, then it would add 3 lines to the table with predefined values ("number, something like 2222, for 12 January 09, and for text, something like" Lorem ipsum dolor sit amet, 195kgs adipisicing elit"). So basically, with the number that I give, it populates the table with lines... How can I do this? Thanks for helping me
INSERT INTO LOR
SELECT 222
, sysdate
, 'you string'
FROM dual
CONNECT BY level <= :Pxx_
Tags: Database
Similar Questions
-
Fill the table with the default target
I have a query like this:
SELECT 0 AS ID,
9999999999 AS CODE
OF THE DOUBLE
UNION ALL
SELECT VEH. TP_ID AS ID,
VEH. VEH_ID AS CODE
OF TB_VEHICLE;
So, I have an interface with two sets of data, one for each request.
The first set of data represents the 'values' 'select from dual' and the second represents the ' select * from tb_vehicle ".
In the first set of data I Don t have a source, then ODI generates a select without table 'select ID AS 0, 99999 AS CODE FROM.
Any ideas on how I can achieve my goal? I need to fill up a line on the target with constant values table.
Thank youIf not, try this:
Duplicate the LKM and IKM you use, make copies, something like LKM xyz (without Source), IKM xyz (without Source).
Then adjust the KM steps accordingly, remove the 'FROM' part and replacement by (VALUES), keeping the substitution of odiref call in the parenthesis.If you have essentially a knowlede module that accepts any data source, generate:
Insert $ CAN
(col 1, col 2, col 3, etc.)VALUES
(Objective 1, the mapping target 2 target mapping 3 mapping, etc.)I put seen done, beautiful, well away it, keeps the line in ODI etc.
-
Fill a table with date values with a fixed increment
Hello
I want to fill a table with a date column with the increment of a fixed value date values. The start date is selectable, the increment is selectable and the number of records is adjustable as well.
For example
start date is 1905-Jan-02, 15:00 (DD-MON-YYYY, HH24:MI:SS)
increment is 1 hour and 5 minutes
None. records is 10
then the dates in the table must be
REC 1 1905 - Jan - 02, 15:00
REC 2 1905 - Jan - 02, 16:05
REC 3 1905 - Jan - 02, 17:10
....
REC 9 1905 - Jan - 02, 23:40
REC 10 1905 - Jan - 03, 00:45:00
We are working on 11 GR 2, the number of records can be between a few hundred and a few million and they must be ordered with Crescent of time (maybe to have a whole id).
Any ideas how to fill this table (simple and fast?) using sql / plsql are welcome.
Thanks, HannesSomething along the lines of:
SQL> alter session set nls_date_format = 'YYYY-Mon-DD HH24:MI:SS'; Session altered. SQL> select trunc(sysdate,'HH')+((rownum-1)*(1/24)*(65/60)) as dt 2 from dual connect by rownum <= 20; DT -------------------- 2010-Aug-26 16:00:00 2010-Aug-26 17:05:00 2010-Aug-26 18:10:00 2010-Aug-26 19:15:00 2010-Aug-26 20:20:00 2010-Aug-26 21:25:00 2010-Aug-26 22:30:00 2010-Aug-26 23:35:00 2010-Aug-27 00:40:00 2010-Aug-27 01:45:00 2010-Aug-27 02:50:00 2010-Aug-27 03:55:00 2010-Aug-27 05:00:00 2010-Aug-27 06:05:00 2010-Aug-27 07:10:00 2010-Aug-27 08:15:00 2010-Aug-27 09:20:00 2010-Aug-27 10:25:00 2010-Aug-27 11:30:00 2010-Aug-27 12:35:00 20 rows selected.
-
Fill the table with the formula nodewith a line of code
Hello
This is my first post of the community, OR maybe this question has been asked 1000 times but I could find no answer.
Before using LabView I used Matlab a lot. I find a bit that it's too complicated without reason sometimes in labview work with arrays.
I inherited, and I'm doing a little cleaning. what it does is extractr 2 and 3 position and creates a new table with her and another oner with other elements of the first table. In my view, that he becomes confused because you should rely on the cell of the table, the position of the output and I didn't wat to work this way.
I replaced it with a knot of formula. Here is the code
The departure is FP, the table of 6 elements is mdot and the 2 elements array is press
MDOT float64 [6], press [2];
MDOT [0] = FP [0]; MDOT [1] = FP [1];
MDOT [2] = FP [4]; MDOT [3] = PS [5];
MDOT [4] = PS [6]; MDOT [5] = FP [7];Press [0] = PS [2], press [1] = PS [3];
Now, I want to know if it is possible to do as I would in matlab or C, where you can create a table with one line of code. What would the syntax in formula node to do something like:
MDOT [6] = [FP [0], FP [1], [4] of FP, FP [5], FP [6], FP [7]];
Press [2] = [FP [2], FP [3]];
Thank you
Use remove the table. You can provide an index and length of elements to remove. One of the outputs will be the original with the subset of the deleted table and the other output is the subset deleted. 1 NŒUD!
EDIT: Created a snippet just after my previous post.
-
Fill the table with file names
What Miss me? I have alerts that should appear if it works and if it fails, but instead, it does nothing, I'm sure he can to create a table which consists of all the names of file to a folder. In the past, I had to enter all the values one time and some of these files have 200 + files it contains.
#target illustrator filltotesTempArr function filltotesTempArr() { var toteTemparray = new Array(toteTemps) var toteTempPath = Folder ("S:/Illustrator JS Palette/Direct Template Calls/Totes"); var allFiles = artPath.getFiles(order); var toteTemps if (allFiles.length > 0) { for (i=0;i<allFiles.length;i++) { toteTemps = toteTemps + app.open(allFiles[i] ) }//end for alert("Your array has the current values:" + toteTemps); }//end if else alert("Script to fill Totes Templates Array has failed"); }
Just try something like this:
function GetTempNames(){ var toteTempPath = Folder ("S:/Illustrator JS Palette/Direct Template Calls/Totes"); var toteTempFiles = toteTempPath.getFiles(); var namesArr = []; for(var i=0; i
-
Mr President.
Can fill us transitional attribute in the table with no serial like 1,2,3, etc.? And how?
Concerning
You want to show serial No. on the page for all the lines?
Check once-
Actually transitional attribute loses its value when page refreshes or viewObject is not appropriate in this case if your use case is different, so please tell us
Ashish
-
How the values to insert into the table with the command insertion
Dear all
can someone tell me how the values to insert into the table with the command insert, I want to say I always use command insert behind my forms on what shutter release button press the button of my save, but today I had a form of 6i, where controls (textbox, combo, etc.) are delineated with directly the table with I guess than the Properties Windows , I created 3 columns in tand 3 text on forms fields, now kindly tell me how to do this fields to fill and do not insert command, I mean directly defined with table column
Please help me its urgentHello
If the block is based on your database table, just committed the shape, then changes will be applied to the database.
François
-
to fill the gaps with value of lead and the delay and make average and the gap between earned
Thanks in advance
I have table as below
What I need is to fill the gaps with value of lead and the delay and make average and the gap between the valuesID TYPE NUM NAME BEG_MP END_MP VALUE 10001103N 3 1190001 WST 0.000 0.220 10001103N 3 1190002 WST 0.220 0.440 10001103N 3 1190003 WST 0.440 0.820 12800 10001103N 3 1190003 WST 0.820 1.180 12800 10001103N 3 1190004 WST 1.180 1.220 10001103N 3 1190004 WST 1.220 1.300 10001103N 3 1190005 WST 1.300 1.420 14800 10001103N 3 1190005 WST 1.420 1.550 14800 10001103N 3 1190006 WST 1.550 2.030 10001103N 3 1190006 WST 2.030 2.660 10001103N 3 1190007 WST 2.660 2.780
ID TYPE NUM NAME BEG_MP END_MP VALUE 10001103N 3 1190001 WST 0.000 0.220 12800 ---> Lag value 10001103N 3 1190002 WST 0.220 0.440 12800 ---> Lag Value 10001103N 3 1190003 WST 0.440 0.820 12800 10001103N 3 1190003 WST 0.820 1.180 12800 10001103N 3 1190004 WST 1.180 1.220 13800 ---> Avg(12800,14800) 10001103N 3 1190004 WST 1.220 1.300 13800 ---> Avg(12800,14800) 10001103N 3 1190005 WST 1.300 1.420 14800 10001103N 3 1190005 WST 1.420 1.550 14800 10001103N 3 1190006 WST 1.550 2.030 14800 ---> Lead Value 10001103N 3 1190006 WST 2.030 2.660 14800 ---> Lead Value 10001103N 3 1190007 WST 2.660 2.780 14800 ---> Lead Value
create table AVG_TABLE ( ID VARCHAR2(20), TYPE NUMBER, NUM NUMBER, NAME VARCHAR2(10), VALUE NUMBER, BEG_MP NUMBER(6,3), END_MP NUMBER(6,3) ) ; insert into AVG_TABLE (ID, TYPE, NUM, NAME, VALUE, BEG_MP, END_MP) values ('10001103N', 3, 1190001, 'WST', null, 0, .22); insert into AVG_TABLE (ID, TYPE, NUM, NAME, VALUE, BEG_MP, END_MP) values ('10001103N', 3, 1190002, 'WST', null, .22, .44); insert into AVG_TABLE (ID, TYPE, NUM, NAME, VALUE, BEG_MP, END_MP) values ('10001103N', 3, 1190003, 'WST', 12800, .44, .82); insert into AVG_TABLE (ID, TYPE, NUM, NAME, VALUE, BEG_MP, END_MP) values ('10001103N', 3, 1190003, 'WST', 12800, .82, 1.18); insert into AVG_TABLE (ID, TYPE, NUM, NAME, VALUE, BEG_MP, END_MP) values ('10001103N', 3, 1190004, 'WST', null, 1.18, 1.22); insert into AVG_TABLE (ID, TYPE, NUM, NAME, VALUE, BEG_MP, END_MP) values ('10001103N', 3, 1190004, 'WST', null, 1.22, 1.3); insert into AVG_TABLE (ID, TYPE, NUM, NAME, VALUE, BEG_MP, END_MP) values ('10001103N', 3, 1190005, 'WST', 14800, 1.3, 1.42); insert into AVG_TABLE (ID, TYPE, NUM, NAME, VALUE, BEG_MP, END_MP) values ('10001103N', 3, 1190005, 'WST', 14800, 1.42, 1.55); insert into AVG_TABLE (ID, TYPE, NUM, NAME, VALUE, BEG_MP, END_MP) values ('10001103N', 3, 1190006, 'WST', null, 1.55, 2.03); insert into AVG_TABLE (ID, TYPE, NUM, NAME, VALUE, BEG_MP, END_MP) values ('10001103N', 3, 1190006, 'WST', null, 2.03, 2.66); insert into AVG_TABLE (ID, TYPE, NUM, NAME, VALUE, BEG_MP, END_MP) values ('10001103N', 3, 1190007, 'WST', null, 2.66, 2.78); commit;
Hello
Use LEAD and LAG when you know exactly how far is the target line (for example, if you know the desired value is on the next row).
If you don't know exactly how far is the target line, then FIRST_VALUE and LAST_VALUE are more likely to be useful.WITH got_neighbors AS ( SELECT avg_table.* , LAST_VALUE (value IGNORE NULLS) OVER (ORDER BY beg_mp) AS prev_value , LAST_VALUE (value IGNORE NULLS) OVER (ORDER BY beg_mp DESC) AS next_value FROM avg_table ) SELECT id, type, num, name, beg_mp, end_mp , COALESCE ( value , ( NVL (prev_value, next_value) + NVL (next_value, prev_value) ) / 2 ) AS value FROM got_neighbors ORDER BY beg_mp to f ;
Riedelme is correct: LAG LEAD (as well as FIRST_VALUE and LAST_VALUE) can return only the values that are there (or that you give as default values). This means that you can not solve this problem with these functions alone; you need something else (as NVL, above) to provide value when the function does not find it.
-
How to export data from the table with the colouring of cells according to value.
Hi all
I use jdeveloper 11.1.1.6
I want to export data from the table with a lot of formatting. as for color cells based on value and so much. How to do this?
You can find us apache POI-http://poi.apache.org/
See this http://www.techartifact.com/blogs/2013/08/generate-excel-file-in-oracle-adf-using-apache-poi.html
-
Fill a table with the results of the refresh groups
Hello world
I need a little help.
I'm working on an Oracle 10.2.0.4 on windows.
I have a table I created like this:
Table name: DIM_REPLICA
COD_SEZ VCHAR2 (2)
NOME_SEZ VCHAR2 (20)
FLAG TANK (1)
DATE OF D_REPLICA
This DB I have 210 discount groups running every night. I need fill this table with the results of the refresh groups.
So when the refresh for example called ROME group runs I need to write on the table the name ROME in the field "NOME_SEZ", a Y or N if the refresh Group has worked in the field of the INDICATOR and LAST_DATE refresh force ran into the field of the D_REPLICA. The COD_SEZ field is a code that I get other things. It is not necessary for the moment. I can add it myself on my own.
Can someone help me please?
I was looking on the tables SYS DBA_JOBS and DBA_REFRESH these data, but I don't know what to take and how to fill the table. Trigger? Procedure? Any help will be great!
Thank you all in advance!This forum is for SQL * PLus, questions and your question is about general issues Oracle. You will get a better response by posting your question in another forum - probably the General database instance.
Please close this thread and start over in another forum.
-
Fill an empty table with predefined values
Hi I have a page that uses ExecuteWithParams. I load a table on this page with pre defined values. The user access the page and changes value according to the needs and calls commit.
My problem is that I can't figure out how to load the table with the page? I am not advocating the code as I have already written. I have no idea where to call the code of.
Thank youAj05,
The best practice for this would be to use method call activities in the workflow as suggested change.
Suggestion of Vinod was the only way to do it in 10g, but I wouldn't recommend it to 11g, as the implementation of the action is hidden in the definition of the page and you must understand the State of refresh and refresh and to ensure that the action does not more often than you. Task flow approach shows explicitly when the method is called
John
-
How to build a list or a table with fixed values?
Is it possible to create a list or a table with fixed values, but with a variable length?
for example:
var columns = "name, age, function;
var insertParams = generateList ( listLen (columns), ',','.) » ); *
fact: insertParams = ',?,??
* (this function does not exist. This is just to illustrate what I need)
I know that this feature is easily created by creating a loop, but I was wondering if it was possible with a single line of code.
Thank you
If he can generate a table in the same way, which would be as well.
Our messages have clashed. But I think that repeatString() would do the trick. You could cut the rear comma with left() or convert it to a table. By default, ListToArray() will silently ignore the trailing comma.
-
Hello
I have a loop 'for' which can take different number of iterations according to the number of measures that the user wants to do.
Inside this loop, I'm auto-indexation four different 1 d arrays. This means that the size of the tables will be different in the different phases of the execution of the program (the size will equal the number of measures).
My question is: the auto-indexation of the tables with different sizes will affect the performance of the program? I think it slows down my Vi...
Thank you very much.
My first thought is that the compiler to the LabVIEW actually removes the Matlab node because the outputs are not used. Once you son upward, LabVIEW must then call Matlab and wait for it to run. I know from experience, the call of Matlab to run the script is SLOW. I also recommend to do the math in native LabVIEW.
-
implementation of the table with the scroll bar. (data scrolling)
Hello
I want to show the web service data in the table with scroll bar using java script or html or css .actuall I want only a part of the screen is not whole screen scrollable. can you suggest how it is possible.any suggestion? I used phone gap technology. I used iscroll but it does not work in blackberry data are not displayed in the Simulator... Help, please
Thank you
ravi1989 wrote:
Hello
I want to show the web service data in the table with scroll bar using java script or html or css .actuall I want only a part of the screen is not whole screen scrollable. can you suggest how it is possible.any suggestion? I used phone gap technology. I used iscroll but it does not work in blackberry data are not displayed in the Simulator... Help, please
According to devices/operating systems that you want to support, you could give bbUI.js a change. It works really well in most of the cases, and I think there are a lot of things you don't need to worry more because bbUI.js is just for you.
Look more at the scrollPanel example that does exactly what it takes, a part only of the entire screen of scrolling you can configure a height in the HTML source code directly.
-
Hi all
Here is the structure of the table with two expression of virtual columns associated highlighted, now I want to delete these expressions with virtual columns (but must keep my VIRTUAL columns as it is).
Is it possible the alter or I need to raise the table, make a new structure and copy content back to newly structured table... Pleae help!
CREATE TABLE TEST_COL)
SAGE_TRADE_TYPE VARCHAR2 (50 BYTE),
LOCAL_TZ VARCHAR2 (20 BYTE),
ACE GMT_CONV_ENTERED_DT_TS (SAGEDBO. FN_CONVERT_TIMEZONE (LOCAL_TZ, ENTERED_DT_TS)) VIRTUAL,.
ACE GMT_CONV_EXECUTION_DT_TS (SAGEDBO. FN_CONVERT_TIMEZONE (LOCAL_TZ, UPSTREAM_EXECUTION_TS)) VIRTUAL,.
EOD_IND VARCHAR2 (10 BYTE)
);
Thank you very much
Arpit
Try this
ALTER table test_col change gmt_conv_entered_dt_ts (0) virtual;
ALTER table test_col change gmt_conv_execution_dt_ts (1) virtual;
Maybe you are looking for
-
If I have my iPhone is no longer under warranty buy care apple the coverage
If my iPhone is no longer under warranty, I could buy apple care in a retail store to restore and to get the coverage that Apple provides
-
How to uninstall the Modem on my Qosmio G50-12 q?
Hello I have a problem with the driver that is currently installed.How to uninstall and remove, permanently, the modem in my Qosmio G50-12 q? I need to have a modem recognised by Windows 7 because that whenever do unistall it, Windows, it found autom
-
Add @ HPconnect unidentified error w/Printer Device
Attempt to manually activate my HP Deskjet 3520 thru hpconnected.com, devices, add a device... allows me to add my printer, but then said there is no problem with the printer and the printer control panel check for info. However there is no info on a
-
Acer offers all trade in credits for the RL-100 Revo? Thank you!
-
will I have problems if I replace the OEM motherboard with a new?
Someone at - it successfully system OEM motherboard replace? I'm fixing a child 6 years out of warranty HP m7160n Media Center PC with a motherboard failed. If I replace the MB with a new one, I have software problems? My goal is just to make a qui