To get the result of the query as the column format delimited
Hi all
I'm running under query to get database information using an automation tool. The output of the query we receive does not come with the defined value. Is there a way I can change the query to output delimited?
Please provide your valuable contributions
SELECT * FROM THE USER. DROP_DOWN_VALUE
WHERE (SELEC_ID IN (SELECT ID FROM THE USER. PLACE WHERE FIELD_NAME = 'TABLE_NAME'))
AND DEPENDENT_FIELD = 'XXXXXXX '.
The query output:
43202TRANSFORMERTRANSFORMERXXXXXXX
Expected results:
43202, TRANSFORMER, TRANSFORMER, XXXXXXX
Thanks and greetings
Riyas Hussain
I'm running under query to get database information using an automation tool. The output of the query we receive does not come with the defined value. Is there a way I can change the query to output delimited?
Just add / * csv * / in front of the query.
See examples of different formats in this article by Sql Dev PM Jeff Smith (a frequent contributor of forum):
SELECT / * csv * / * FROM scott.emp;
SELECT / * xml * / * FROM scott.emp;
SELECT / * html * / * FROM scott.emp;
SELECT / * delimited * / * FROM scott.emp;
SELECT / * INSERT * / * FROM scott.emp;
SELECT / * charger * / * FROM scott.emp;
SELECT / * fixed * / * FROM scott.emp;
SELECT / * text * / * FROM scott.emp;
Tags: Database
Similar Questions
-
Hi all,
I'm sorry to ask this question because I found 2 different answers, tried without result. So before you go crazy, I prefer to ask!
Thus given mySelection = app.selection [0], how is possible to get the column's selection?
I tried app.selection [0] .parentTextFrames [0].characters.itemByRange (0, x)
with x being app.selection [0] .index.
but then I'm stuck as if I add ".textColumns", I get an error
I explored the second way using app.selection [0].textColumns.item (1).insertionPoints.item (1), but once I'm stuck again.
As a beginner I don't understand why there is no simple built-in function to call in order to obtain such a result of base
Any help would be appreciated
Thank you
Ed
Okay here goes,
For and only for the linked text frames.
// For and only for linked text frames. // Warning // The Good: This will PROBABLY work for you // The Bad :THIS IS A REALLY PRIMITIVE METHOD // The Ugly: It could fail in COUNTLESS cases // Here goes...... var mySelection, textFrame, parentPage, c; mySelection = app.selection[0]; textFrame = mySelection.parentTextFrames[0]; parentPage = textFrame.parentPage; c = 0; while(textFrame && textFrame.parentPage === parentPage){ textFrame = textFrame.previousTextFrame; c++; } alert('Column number: ' + c);
Now with regard to the issue of the image columns bound text compared to the blocks of text with multiple columns of text or span. Depends on what you're trying to achieve with your workflow.
The scripts are around written by me and others who convert multicolumn text executives to related texts related and vice versa.
If you want to know which is more appropriate you can use with your workflow, then I suggest the regular ID forum.
HTH
Trevor
-
How to get the hour format system?
Hi all
How to get the hour format system, I mean what format 24 / 12 system uses?
Looks like the CalendarSettings class is perhaps the official way: https://developer.blackberry.com/native/reference/cascades/bb__pim__calendar__calendarsettings.html#...
-
Get the Date format that the user sets in "Preferences".
Hello
Is it possible that I can get the date format (for example: "DD-MMM-YYYY', 'DD-MM-YYYY' etc.) where the user desires under 'Préférences' in a page of the OPS?
Concerning
Hawker
Published by: HawkerHunter on Aug 6, 2011 11:02ICX_DATE_FORMAT_MASK - is the value of profile that contains the value that is selected in the preferences page.
You can try pageContext.getProfile ("ICX_DATE_FORMAT_MASK");
in your code.Kind regards
Krishnan guru. -
Get the columns returned by the query without running
I have a table that stores SELECT queries in a column. I developed a .net application where the interesting thing for the user is what columns of the following SELECT statement returns. Currently, I load the sql as an OracleCommand object CommandText and fill a DataTable using an OracleDataAdapter object. I then read the names of the columns of the table filled. The data is not fully used. Requests can take up to 15 seconds to run. Because I do not used the data, I was hoping to eliminate the actual recovery of data and reduce the time needed to retrieve the records. Is it possible to analyze the statement for the colunm names with it makes the request for enforcement? Thank you.I imagine that there is a way you can search in the data dictionary, but you can also try to add 'WHERE 1 = 0' If you want the metadata.
It will be useful,
Greg -
getting bad results with a query
I have a column with the VARCHAR2 data type name (2) into a table and another table with a column named OFFICER_ZONE with the VARCHAR2 data type (1). What I'm trying to do is to compare these data and then insert it in the second table. But before you insert the data, if the AREA is equal to a number in double digits with a zero in front of her, then I need to CUT 0. If the BOX has a number greater than 9, then I have just these values to NULL. With the query below, I get the upper to 9 zones to be null, which is correct, but I also have those who are the two numbers with a zero not significant, which is not correct.
For example:
Area
1
2
5
07
15
19
14
6
02
d
c
e
b
Results:
Bad area: 07
Bad box: 15
Bad area: 19
Bad box: 14
Bad area: 02
--ZONE BAD DATA IF CR.ZONE NOT IN ('a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u', 'v','w','x','y','z','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z', '0','1','2','3','4','5','6','7','8','9') THEN V_OFFICER_ZONE := NULL; DBMS_OUTPUT.PUT_LINE('ZONE NOT VALID:'||CR.LOCCASENUM||CR.ZONE); insert into pursuits.pursuit_exception(case_number,table_name,error_message) values(cr.loccasenum,'PURSUIT','Bad Zone: '||v_officer_zone||','||cr.zone); ELSE V_OFFICER_ZONE := TRIM(LEADING 0 FROM CR.ZONE); END IF;
with t as ( select '1' zone from dual union all select '2' from dual union all select '5' from dual union all select '07' from dual union all select '15' from dual union all select '19' from dual union all select '14' from dual union all select '6' from dual union all select '02' from dual union all select '0' from dual union all select '00' from dual union all select 'd' from dual union all select 'c' from dual union all select 'e' from dual union all select 'b' from dual ) select zone, case when length(zone) = 1 then zone when zone between '00' and '09' then substr(zone,2) else null end officer_zone from t / ZONE OFFICER_ZONE ---- ------------ 1 1 2 2 5 5 07 7 15 19 14 6 6 02 2 0 0 00 0 ZONE OFFICER_ZONE ---- ------------ d d c c e e b b 15 rows selected. SQL>
SY.
-
Hallo,
I want to create a method that takes as a parameter the id of an af:table (used to display the search results) and returns:
- the column headings of the af: table
- Visible property (true/false) of the columns af:table
- the actual query of the VO instance used to create the af: table
- the values of real bind variables passed to the query of the instance of VO
I would like to create a servlet which takes the parameters reruns the query and returns a report Excel/PDF file that contains exactly the same columns and same of the af records: table.
I'm a little confused on who use the code to achieve this... you kindly help me?
I did a similar qustion here
but then I guessed that it was preferable to create a new thread.Thank you
Federico
For this, you can use this type of code
Context LocaleContext = _adfTableBinding.getLocaleContext ();
for (attr AttributeDef: attributeDef) {}
Label As String = attr.getUIHelper () .getLabel (context);
_logger.info ("Attritbute name:" + attr.getName () + "column name:" + attr.getColumnName () + "Col4Query name:" + attr.getColumnNameForQuery () +)
"Name:"+ label);
}
which produces this output
Timo
-
How to get the text formatting in the tables
Dear experts and aid
For my project, I import an RTF file and then read the data into 3 tables. It works fine when just using the contents of the string of paragraphs. However, the final script should be able to read and to replace the text formatted...
Why use intermediate tables? Because otherwise I need to swap between two fm-documents (and you can be a part of the book).The imported file starts with a certain number of lines separated into two parts by a TAB ("designates a TAB in \x08 FM)
[[Garneau, 1990 #12]] » [9]
The good article can also be locally as text, e.g. [9]
Then follow the same (or smaller) number of paragraphs with text formatted like this:
[9]"D. Garneau, ed., National Language Support Reference Manual (national language Information Design Guide. Toronto, CDN: IBM National Language technical Centre, 1990.Is it possible to replace in the body of the function below the next song
while(pgf.ObjectValid()) { pgfText = GetText (pgf, newDoc); gaBibliography.push(pgfText); pgf = pgf.NextPgfInFlow; }
with this
while(pgf.ObjectValid()) { gaBibliography.push(pgf); pgf = pgf.NextPgfInFlow; }
Do I need a special statement of the gaBibliography range?
And how to get the right part of the lines as formatted intro thingy in table gaFmtCitsFmt ?Currently, I read in the tables as "strings" (function GetText not shown):
var gaFmtCitsRaw = []; // left column in processed RTF var gaFmtCitsFmt = []; // right column in processed RTF var gaBibliography= []; // bibliography lines from processed RTF // filename is something like E:\_DDDprojects\FM+EN-escript\FM-testfiles\BibFM-collected-IEEE.rtf function ReadFileRTF (fileName) { var nCits=0, nBib = 0, openParams, openReturnParams, newDoc, pgf, pgfText ; var TAB = String.fromCharCode(8); // FM has wrong ASCI for TAB var parts = []; openParams = GetOpenDefaultParams(); openReturnParams = new PropVals(); newDoc = Open (fileName, openParams, openReturnParams); pgf = newDoc.MainFlowInDoc.FirstTextFrameInFlow.FirstPgf; // get first pgf in flow // --- read the temp/formatted citations while(pgf.ObjectValid()) { pgfText = GetText (pgf, newDoc); if (pgfText.substring (0,2) == "[[") { // citation lines start with [[ parts = pgfText.split(TAB); // get the two parts of the line gaFmtCitsRaw.push (parts[0]); // Push the result onto the global array gaFmtCitsFmt.push (parts[1]); pgf = pgf.NextPgfInFlow; } else { break } } // --- read the bibliography while(pgf.ObjectValid()) { // until end of doc pgfText = GetText (pgf, newDoc); gaBibliography.push(pgfText); pgf = pgf.NextPgfInFlow; } newDoc.Close (Constants.FF_CLOSE_MODIFIED); } // --- end ReadFileRTF
The following questions will then be how to change the script of FindAndReplace of Ian Proudfoot for managing text formatted as replacement. I will need to use the copy and paste IMHO...
Klaus, okay, before pasting, you must assign the TextSelection object at your insertion point.
// Add a new paragraph after the current paragraph. var newPgf = oDoc.NewSeriesPgf (lastPgf); var textRange = new TextRange (new TextLoc (newPgf, 0), new TextLoc (newPgf, 0)); oDoc.TextSelection = textRange; oDoc.Paste ();
-Rick
-
I can't get the picture size to fill the screen. The TV is set to 16: 9 and all other devices to fill the screen.
Thanks for any suggestions that might help solve this frustrating problem.
Welcome to the Apple community.
The devices on which you are talking about, are you using AirPlay.
-
How to get the column headers into an Excel report with variable width columns?
Hello:
I read this question before but I can´t open the link when I try to download the solution I get the following: status HTTP 404 the requested resource is not available.
Can someone help me with the solution? I want to just put a heading for each column (1 thermocouple, thermocouple 2, anemometer, etc.).
In advance, thank you for your help!
You may need to take some tutorials.
LabVIEW Introduction course - 3 hours
LabVIEW Introduction course - 6 hours -
How to get the column provided out of the Oracle Data Miner?
Hi all!
I use Oracle Data Miner provided with Oracle SQL Developer to predict the loss of customers. If I plan on the table column lets say X (as a target column) of table say T, so how can I get the corresponding values under my model?
Here is the simplified model for the reference.
Thanks in advance!
Hello
Simply connect a node that accepts data to the node to apply it.
For example, if you want to create a view or table table using the prediction of outputs generated by the node to apply it, and then add a Create Table node and connect the node to apply it.
For more information, try the Oracle by example tutorials for ODMr.
You must use the node apply Publisher to revise prediction outputs models to generate as well as the additional columns to include, for example columns id.
There are a set of predictor columns added by default that may be acceptable.
THX, mark
-
How to get the Date format for a specific date?
May be it is inept to ask, but I'm aware of the Date.
which appear on client - it's just that the average customer treats the date.
Right?
So what happens if a need to check the format to set the server to date.
Or need to write common code indicating the date format
on the server, it is running.
This requirement came into my mind while using the extract method.
Actually, I wanted to date of manipulation of the side back end.
Let's say the time is 04:12:2012 03:05:16.
Now, if I add 100 minutes, the result will be.
04:12:2012 04:45:16.
It's the requirement. Maybe there may be best way to do
but it's the way I think now.
Thank you.It's something that you don't need to know:
you have a string containing a date or timestamp, and then he must know the format of this string and not the fornat date used by the server.
or you have a date or timestamp, and then you can add minutes to it without knowing the format as described before. -
How can I get the columns-by-side?
http://www.Adobe.com/devnet/Dreamweaver/articles/first_website_pt2_08.html
In the creation of your first tutorial of Web site (see link) I can not understand how to recover the columns side by side are being stacked. I went on the indications of the tutorial at least five times. What I am doing wrong in coding? Here is a picture of my screen:
Here is a screenshot of how the columns should be stacked (from the tutorial):
Take a look at where you graduate #center_column in the html code of the page. You have this:
where it should be
Because a class called 'center_column' has not been defined (somehow), it belongs to the following line.
I saw your styles for all three columns, as IDs.
Beth
-
Output parameter does not value of the column formatting
Here's my table structure:
< h4 > < font color = "Blue" > CREATE TABLE 'SSPFUSER05 '. "' PEOPLE '.
(SSN NUMBER (13.0),)
PIN VARCHAR2 (7-BYTE)
) ; < / make >
< / h4 >
And here is my procedure below:
< h4 > < font color = "Blue" >
CREATE OR REPLACE
PROCEDURE SP_SSN_BY_PIN)
V_REQUESTEDPIN IN VARCHAR2,
V_SSN TANK)
AS
BEGIN
SELECT
LPAD (SSN, 13, '0')
IN
V_SSN
Of
SSPFUSER05. PEOPLE
WHERE
PIN = V_REQUESTEDPIN;
EXCEPTION
WHEN NO_DATA_FOUND THEN
V_SSN: = NULL;
END; < / police > < / h4 >
As you can see that the type of the column SSN is NUMBER (13,0). But I leftpad with 0 and assign it to my output V_SSN parameter, whose type is of type CHAR. But I 111196100099 instead of 0111196100099. I tried TO_CHAR (LPAD (SSN, 13, '0')) but does not always help. However, if I return that left padded inside a SYS_REFCURSOR SSN I get what I want. What should I do to achieve this?Depends on...
SQL> CREATE TABLE PERSONS 2 ( SSN NUMBER(13,0), 3 PIN VARCHAR2(7 BYTE) 4 ); Table created. SQL> CREATE OR REPLACE 2 PROCEDURE SP_SSN_BY_PIN( 3 V_REQUESTEDPIN IN VARCHAR2, 4 V_SSN OUT CHAR) 5 AS 6 BEGIN 7 SELECT 8 LPAD(SSN,13,'0') 9 INTO 10 V_SSN 11 FROM 12 PERSONS 13 WHERE 14 PIN=V_REQUESTEDPIN; 15 EXCEPTION 16 WHEN NO_DATA_FOUND THEN 17 V_SSN:=NULL; 18 END; 19 / Procedure created. SQL> insert into PERSONS values(123,'abc'); 1 row created. SQL> commit; Commit complete. SQL> declare 2 v_temp_1 char(100); 3 v_temp_2 number; 4 begin 5 SP_SSN_BY_PIN('abc',v_temp_1); 6 SP_SSN_BY_PIN('abc',v_temp_2); 7 dbms_output.put_line(v_temp_1); 8 dbms_output.put_line(v_temp_2); 9 end; 10 / 0000000000123 123 PL/SQL procedure successfully completed. SQL>
-
Display the result of a query in 3 columns
Hello
I have a query with n records. Now, I want to display all the records in a HTML page into 3 columns. I don't have any idea on how to do it!
What I would like is (assuming I have 9 entries in my query):
< div id = "column1" >
viewing records 1 to 3
< / div >
< div id = "column2" >
view records of 4-6
< / div >
< div id = "Column3" >
view records 7-9
< / div >
Someone has a short solution or at least a link to a sloution. I can't find anything big yet...
Thanks and greetingsHello
I found a solution that works very well - unfortunately I don't really understand it :-)
Thank you for your contributions!
Maybe you are looking for
-
How can I connect name BT IDS of devices in a log file by using the Toshiba BT stack
Hello without Microsoft stack, I can't use a lot of freeware programs (BluetoothView.exe, BluetoothCL.exe, BTScanner for Windows), to 'catch up' bluetooth devices in a log file. How can I connect names bt ID/description of the devices in a logfile us
-
Ink black Photosmart 7520 does not
My brand-new 7520 seems to have given your work already. Black ink is out of use. When printing, it started generating no printed stripes and after two pages, no more black ink was put on paper. Although the almost new cartridge should always do, I r
-
How to create an event of time without going through the interface user freeze
Hello I'm new to labwindows and I'm trying to create a time event where every hour for 24 hours, I want my program to write something in excel. I tried to use the Delay and SyncWait and these functions freezes to the top of the user interface. All th
-
IS, DISCULPEN TENGO A S2W 4300U ACER PERO SCAN DEVICE NO BLACK THAN MI COMPUTADORA LAPTOP TOSHIBA NO SATELLITE P855-S5200 LO RECOGNIZE. SALUDOS,
-
can someone tell me please how do I change the permissions? I'm unable to access my Sage accounts as parameters have changed somehow. Urgent responses would be appreciated. Thank you