Selection of several columns in the variable of a string
Hi all
Is there a trick how to select the values of all columns in a single variable of type varchar?
Consider that une_table has 5 columns of data type VARCHAR or NUMBER.
DECLARE
vvc_String VARCHAR2 (1000);
BEGIN
SELECT * INTO vvc_String une_table;
END;
/
Thanks for the tips.
Use dynamic SQL statements:
SQL > CREATE TABLE UNE_TABLE
2 AS
3. SELECT *.
4 OF DEPT
5 WHERE ROWNUM = 1
6.
Table created.
SQL > DECLARE
2 vvc_String VARCHAR2 (1000);
3 v_stmt varchar2 (10000);
4 BEGIN
v_stmt 5: = Q'[select "]';
6 for v_i to (select column_name from user_tab_columns where table_name = 'Une_table"of order of column_id) loop
7 v_stmt: = v_stmt | ' || ' || V_I.column_name;
8 end of loop;
9 v_stmt: = v_stmt | "to une_table";
10 run immediately v_stmt
11 in vvc_String;
12 dbms_output.put_line (vvc_String);
13 END;
14.
10ACCOUNTINGNEW YORK
PL/SQL procedure successfully completed.
SQL >
SY.
Tags: Database
Similar Questions
-
only get a single photo on board contact despite the selection of several columns.
When you select the photo and contact sheet then, there is only a single photo in the upper left column. Unable to get several copies despite the selection of several columns.
The contact sheet shows only the photos you selected in the library before going to the page of Contacts.
If you want to have multiple copies of the same image, you need to duplicate this image enough times so that you get the number you want on the contact page. Select the thumbnail and use the key combination command + D to duplicate the photo.
Select all duplicate images, and then go to the Contacts option in the printing process.
-
What's the point of having several columns in the ORDER BY clause?
DB version: 10 gr 2
When you use the ORDER BY clause, the lines are always sorted by the first column in the ORDER BY clause. So, what's the point of having several columns in the ORDER BY clause (I always see this in production codes)?
For the below SQLs' schema SCOTT, result sets are always classified according to the first column ename. When I added use asc and desc of employment, does not change the result set.
SQL> select * from emp order by ename; EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO ---------- ---------- --------- ---------- --------- ---------- ---------- ---------- 7876 ADAMS CLERK 7788 23-MAY-87 1100 20 7499 ALLEN SALESMAN 7698 20-FEB-81 1600 300 30 7698 BLAKE MANAGER 7839 01-MAY-81 2850 30 7782 CLARK MANAGER 7839 09-JUN-81 2450 20 7902 FORD ANALYST 7566 03-DEC-81 3000 20 7900 JAMES CLERK 7698 03-DEC-81 950 30 7566 JONES MANAGER 7839 02-APR-81 2975 20 7839 KING PRESIDENT 17-NOV-81 5000 20 7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400 30 7934 MILLER CLERK 7782 23-JAN-82 1300 20 7788 SCOTT ANALYST 7566 19-APR-87 3000 20 7369 SMITH CLERK 7902 17-DEC-80 800 20 7844 TURNER SALESMAN 7698 08-SEP-81 1500 0 30 7521 WARD SALESMAN 7698 22-FEB-81 1250 500 30 14 rows selected. SQL> select * from emp order by ename, job; EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO ---------- ---------- --------- ---------- --------- ---------- ---------- ---------- 7876 ADAMS CLERK 7788 23-MAY-87 1100 20 7499 ALLEN SALESMAN 7698 20-FEB-81 1600 300 30 7698 BLAKE MANAGER 7839 01-MAY-81 2850 30 7782 CLARK MANAGER 7839 09-JUN-81 2450 20 7902 FORD ANALYST 7566 03-DEC-81 3000 20 7900 JAMES CLERK 7698 03-DEC-81 950 30 7566 JONES MANAGER 7839 02-APR-81 2975 20 7839 KING PRESIDENT 17-NOV-81 5000 20 7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400 30 7934 MILLER CLERK 7782 23-JAN-82 1300 20 7788 SCOTT ANALYST 7566 19-APR-87 3000 20 7369 SMITH CLERK 7902 17-DEC-80 800 20 7844 TURNER SALESMAN 7698 08-SEP-81 1500 0 30 7521 WARD SALESMAN 7698 22-FEB-81 1250 500 30 14 rows selected. SQL> select * from emp order by ename, job desc; EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO ---------- ---------- --------- ---------- --------- ---------- ---------- ---------- 7876 ADAMS CLERK 7788 23-MAY-87 1100 20 7499 ALLEN SALESMAN 7698 20-FEB-81 1600 300 30 7698 BLAKE MANAGER 7839 01-MAY-81 2850 30 7782 CLARK MANAGER 7839 09-JUN-81 2450 20 7902 FORD ANALYST 7566 03-DEC-81 3000 20 7900 JAMES CLERK 7698 03-DEC-81 950 30 7566 JONES MANAGER 7839 02-APR-81 2975 20 7839 KING PRESIDENT 17-NOV-81 5000 20 7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400 30 7934 MILLER CLERK 7782 23-JAN-82 1300 20 7788 SCOTT ANALYST 7566 19-APR-87 3000 20 7369 SMITH CLERK 7902 17-DEC-80 800 20 7844 TURNER SALESMAN 7698 08-SEP-81 1500 0 30 7521 WARD SALESMAN 7698 22-FEB-81 1250 500 30 14 rows selected.
Search in this example, you will see the difference
SQL> create table test_order (name varchar2(10), surname varchar2(10), age number); Table created. SQL> insert into test_order values('Kamran','Agayev',26); 1 row created. SQL> insert into test_order values('Kamran','Taghiyev',26); 1 row created. SQL> insert into test_order values('John','Kevin',23); 1 row created. SQL> select * from test_order; NAME SURNAME AGE ---------- ---------- ---------- Kamran Agayev 26 Kamran Taghiyev 26 John Kevin 23 SQL> select * from test_order 2 order by age; NAME SURNAME AGE ---------- ---------- ---------- John Kevin 23 Kamran Agayev 26 Kamran Taghiyev 26 SQL> select * from test_order 2 order by age asc, surname desc; NAME SURNAME AGE ---------- ---------- ---------- John Kevin 23 Kamran Taghiyev 26 Kamran Agayev 26 SQL>
When in the second query, I sorted out only for age, you saw it there two 26 years old Keita, there was first Agayev, then Taghiyev. But if I want to get the family names in descending order when there are two very old person, then I will add the second column in the order by clause
- - - - - - - - - - - - - - - - - - - - -
Kamran Agayev a. (10g OCP)
http://kamranagayev.WordPress.com -
Why not the type of the variable is a string?
Hi, I need your help. \(´o `)/
When I'm "DropDownList.items", the type of the variable dose not become the 'string. '
Why?------------------------------------------------------------------------------------------ ----------------------------------------
var ddList = new Array();
ddList = ["adobe", "DSP", "Japan"]; any value string table/ * Create window * /.
var = DLG
"dialogue {text:"Interface of Script", limits: [200,200,460,350],"+}.
"panel0:Panel {limits: [10,10,240,140], text:", properties: {borderStyle: "engraved", su1PanelCoordinates:true}, '+}.
"ddownlist1:DropDownList {limits: [10,20,100,45]}, ' +.
"button1:Button {limits: [10,55,100,80], text: 'Ok'}, ' +.
"button2:Button {limits: [110,55,200,80], text: 'Cancel'}}} ';
var win = new window (dlg, "click on the ok button!");for (var i = 0; i < ddList.length; i ++) {}
Win.panel0.ddownlist1.Add ("Item", ddList [i]); Add items to doropdownlist.
}
Win.panel0.ddownlist1.selection = 0;
/ * When the "ok" button is clicked... * /.
Win.panel0.button1.onclick = function() {}var ddownlistItems = win.panel0.ddownlist1.items;
for (var i = 0; i < ddownlistItems.length; i ++) {}
/ * If when 'isNaN' command was returned to 'true', while the type of the variable is "string", if it was referred to 'false', so no 'chain '. *****/
Alert ("ddownlistItems [" i + "] plus" + IsNaN (ddownlistItems [i]));
}
}
Win.Show ();
------------------------------------------------------------------------------------------ ----------------------------------------
I tried this script, "alert" has been returned "ddownlistItems [0] = false '.
but the setting of the components dropdownlist used table of "channels".
Why not the type of the variable is a string?
Thank you.
Because you do not test the chain only the index.
try...
Alert (ddownlistItems [i] + "=" + isNaN (ddownlistItems [i] .text));
-
Several "columns" in the charts in SVG/FLASH?
I need to create a pie with three elements... both are derived from a column in the database, while the latter is derived from another column. I've been playing with this for the last couple days.
Because I know so little about this stuff, my last resort was to create hidden objects, with a SQL process to update the time "before the header" this work... but I can't understand how to obtain these three elements in my pie!
Here are my three sql statements, that I need to enter a pie chart:
Point 1: "Total needed.
SELECT COUNT (PRODUCT)
OF PRODUCT_DATA
WHERE PRODUCT = 'NO '.
AND PRODUCT_TYPE = 'HOME'
Point 2: "update more than 10 years'
SELECT COUNT (PRODUCT_DATE)
OF PRODUCT_DATA
WHERE PRODUCT_DATE < = TO_DATE (March 30, 1999 "," DD-MON-YYYY "")
AND PRODUCT_TYPE = 'HOME'
Point 3: "update < 10 years."
SELECT COUNT (PRODUCT_DATE)
OF PRODUCT_DATA
WHERE PRODUCT_DATE > = TO_DATE (March 30, 1999 "," DD-MON-YYYY "")
AND PRODUCT_TYPE = 'HOME'
(Ideally I would replace the 30 March 1999 ' with TO_DATE (TRUNC (SYSDATE)-10 years, 'DD-MON-YYYY'), but have not thought too much about it yet!)
Related to this... the above information has been imported from and Excel spreadsheet. The imported fine paintings... but there is a page with several graphics/tables which were all different formulas
I have created a calculation to update three points... but could not figure out how to put them in the pie chart:
P5_TOTAL_REQUIRED
P5_TOTAL_OVER_10YRS
P5_TOTAL_UNDER_10YRS
Appreciate any help!
KSL.Hello
You can use UNION ALL to gather statements:
SELECT NULL LINK, LABEL, VALUE FROM ( SELECT 'Total Required' LABEL, COUNT(PRODUCT) VALUE FROM PRODUCT_DATA WHERE PRODUCT='NO' AND PRODUCT_TYPE = 'HOME' UNION ALL SELECT 'Update Over 10YRS' LABEL, COUNT(PRODUCT_DATE) VALUE FROM PRODUCT_DATA WHERE PRODUCT_DATE <= TO_DATE('30-MAR-1999', 'DD-MON-YYYY') AND PRODUCT_TYPE='HOME' UNION ALL SELECT 'Update < 10Yrs' LABEL, COUNT(PRODUCT_DATE) VALUE FROM PRODUCT_DATA WHERE PRODUCT_DATE >= TO_DATE('30-MAR-1999', 'DD-MON-YYYY') AND PRODUCT_TYPE='HOME' )
To the date of issue, you can use:
ADD_MONTHS(SYSDATE, -120)
Who will deduct 10 years (120 months) from now
Andy
-
Mapping of several columns in the source in 1 target with the source Excel file
Hello
I use to load Excel files in HFM FDM 11.1.2.1.
In Excel, I had 3 columns that need to be mapped in 1 column target using a few rules and mappings. Forest to source file should work in all cases.
For example,.
Source:
A, B AND C
1 company 1 xxx
2 yyy Company2
1 Company3 zzz
mapping for B:
Company 1 C1
C3 Company3
mapping for C:
C2 Company2
target after confirming:
C1
C2
C3
I take data from B or C according to data in A (1 or 2).
I found several ways to do so, but they are not perfect:
1 map columns B and C to the correct value (#C1, C2) and use scripting conditional on a column (for value correctly mapped either column B or C).
The problem here is that I can not break through the low PIF when B and C are mapped to values other than [none]. Can this been bypassed?
2 use DataPump import Scripts for concatenating the sources in one column only and use the tables mapping standart on 1 column.
The problem is that DataPump import Scripts do not work with the source files Excel. Is this correct? I could find a word in the documentation...
3. map columns B and C [None] script well but fat on the column, as:
If (varValues (13) = '1' and varValues (39) = "Company1")) then
Result = "C1".
ElseIf...
Which is horrible, and it would be very difficult to add new mappings in the script. But it works.
4. logical accounts. I can't use it I need to drill down.
Could you recommend me some better way to do this simple task to work?It's a bit that I coded something like that in VBA, so you will need to do a bit of cleanup; However, it should get you well in a way that might work...
Why not add a formula in the excel file, once it is downloaded? (I guess the excel file that is being loaded is not something that you could develop a formula to start?)
on error resume next 'make sure all commands are executed. If something happens in code and file is open, we don't want to leave it open... Set objExcel = CreateObject("Excel.Application") Set objWorkbook = objExcel.Workbooks.Open("
") Set objworkSheet = objWorkbook.Sheets(" ") 'OR you could use ordinal objExcel.Application.DisplayAlerts = False objExcel.Application.Visible = false for x = 1 to 100 'I'm just doing a loop for the sake of doing a loop. You might want to loop through rows and for each row that has a 'value in col A, make the formula and then break out of loop so you don't add a metric ton of unnecessary formulas objworksheet.Cells(x, "C").Formula = "=A" & x & " + B" & x 'i.e. =A1+B1 next 'Save the changes objWorkbook.Save 'Close the workbook objWorkbook.Close 'Quit application (important) objworksheet = nothing objworkbook = nothing objExcel.Application.Quit objexcel = nothing NOTE: Microsoft DOES NOT officially support office (i.e. what we do above and what of FDM backstage I guess) seems to work very well, but in most cases, etc.. Be careful about cleaning to ensure that all memory is released and that the instance of excel stops.
-
question [10g] Simple on the selection of a column in the same record as the value min
I have the sample data to illustrate my question:
I have the following query, which lets me select the ikram value that corresponds to the minimum value of c_b grouped by are. In other words, my goal is: for each value in are, I want the ikram value that corresponds to the minimum value of c_b.CREATE TABLE t_1 ( c_a VARCHAR2(1) , c_b NUMBER(2) , c_c DATE ); INSERT INTO t_1 VALUES('A',1,SYSDATE); INSERT INTO t_1 VALUES('A',2,SYSDATE+1); INSERT INTO t_1 VALUES('A',3,SYSDATE+2); INSERT INTO t_1 VALUES('A',4,SYSDATE+3); INSERT INTO t_1 VALUES('B',3,SYSDATE+6); INSERT INTO t_1 VALUES('B',4,SYSDATE+7); INSERT INTO t_1 VALUES('B',5,SYSDATE+8);
This query works, but I wonder if there is a better way to do it. Something without a subquery? I can't get to what anyone else... It's just a bit tedious with my real data, as there are probably 10 columns of data instead of 3 has. (1 single minimum value but still).SELECT t1.c_a , t1.c_c FROM t_1 t1 , ( SELECT c_a , MIN(c_b) AS min_c_b FROM t_1 GROUP BY c_a ) t2 WHERE t1.c_a = t2.c_a AND t1.c_b = t2.min_c_b ;
Use the KEEP FIRST / LAST function, grouping, that is to say:
with t_1 as (select 'A' c_a, 1 c_b, sysdate c_c from dual union all select 'A' c_a, 2 c_b, sysdate + 1 c_c from dual union all select 'A' c_a, 3 c_b, sysdate + 2 c_c from dual union all select 'A' c_a, 4 c_b, sysdate + 3 c_c from dual union all select 'B' c_a, 3 c_b, sysdate + 6 c_c from dual union all select 'B' c_a, 4 c_b, sysdate + 7 c_c from dual union all select 'B' c_a, 5 c_b, sysdate + 8 c_c from dual) -- end of mimicking your t_1 table, see SQL below: select c_a, min(c_c) keep (dense_rank first order by c_b) c_c from t_1 group by c_a; C_A C_C --- ------------------- A 21/07/2011 16:41:46 B 27/07/2011 16:41:46
NB. the min (ç_ç) is to choose what the lowest value of the ikram should there be more than one row returned for the first c_b. You can max (ç_ç) instead, according to your needs. (If are, c_b is unique, you can use either.)
-
several versions of the Variables shared on the same network
I have 2 separate reactors working on the same network each variable deployment shared ~ 50 (different names on each process) contacting LV 8.5RT running on hardware of the FP. One of the reactors is asked for new features and upgrade. It is possible the Heve 2 different shared variable engine (8.5 and 2010) and the versions on the same network, and the client computer, or I'm in trouble.
Oh boy I think you ask in trouble here!
-
How do delet several columns in the 2D table 0
Dear Sir.
Please tell me how delet 0 multiple column besuace zero of one by a column of delet take too much time. Here, I have attached the program with this message and the main file.
Julian_prince wrote:
Please tell me how delet 0 multiple column besuace zero of one by a column of delet take too much time. Here, I have attached the program with this message and the main file.
How big are your real matrices? How do you measure the speed? How fast is now and how fast should it be?
In all cases, you can do it with a single loop, for example as an attachment.
-
Insert selected in several checked uncheck the delete record
Hi all
I have a detailed block I add a checkbox not database once check the records is inserted into the temporary table
the same records uncheck the box delete records
IAM has inserted when checking the records of the table
but when I have a check only check all records are deleted in my temporary table
WHEN-BOX-CHANGE
declare
v_app_user_id integer (10);
number of v_count;
Start
v_app_user_id: = dtc_util.get_global_value('dtc_global.user_id');
go_block ('RULE_ITEM');
premier_enregistrement;
loop
SELECT count (1) in the dtc_rule_item_lock v_count
where rule_item_id =: rule_item.rule_item_id;
If Checkbox_Checked ('rule_item.checkout') and v_count = 0 then
insert into dtc_rule_item_lock values (:rule_item.rule_item_id, v_app_user_id, sysdate);
ELSIF: RULE_ITEM. BOX = 'n' then
DELETE FROM dtc_rule_item_lock
where exists (select 'x' from dtc_rule_item dtcl
where dtcl.rule_item_id =: rule_item.rule_item_id);
end if;
When the output: system.last_record = "TRUE";
next_record;
end loop;
premier_enregistrement;
If form_success or sqlcode = 0 then
message ("documents saved successfully in the database '");
message (' ', no_acknowledge);
FORMS_DDL ('COMMIT');
on the other
message ("error saving documents: ' |") SQLERRM);
message (' ', no_acknowledge);
end if;
end;
Let me help you for this
Thank you
Olivier
I guess there is the clause does not. You check against dtc_rule_item, I guess that is dtc_rule_item_lock.
-
Any way to export several columns in the links Panel?
This was posted on the InDesign forum, suggested that there could be a script that could achieve this?
Work on a manual with hundreds of illustrations. Each chapter has up to 100. Need to get more than one column of data (file name and # it appears on the page) exported from the links Panel (in a sorted order) so they can be recessed into a spreadsheet. I use TextWrangler which will clear out all the names of files in a folder, but it sorts alphabetically and I really want them sort by Page numbers where they appear.
This script creates a CSV file on the desktop that you can import into Excel. The name of the file is the same as the name of the indesign document active.
Kasyan
var scriptName = "Generate list of links"; if (app.documents.length == 0) ErrorExit("No documents are open. Please open a document and try again."); var page, allGraphics, graphic; var text = "File name;Page\r"; var doc = app.activeDocument; for (var i = 0; i < doc.pages.length; i++) { page = doc.pages[i]; allGraphics = page.allGraphics; for (var k = 0; k < allGraphics.length; k++) { graphic = allGraphics[k]; if (graphic.itemLink != null) { text += graphic.itemLink.name + ";" + page.name +"\r"; } } } WriteToFile(text); //-------------------------------------- FUNCTIONS --------------------------------------------- function WriteToFile(text) { var theFile = new File("~/Desktop/" + GetFileNameOnly(doc.name) + ".csv"); theFile.open("w"); theFile.write(text); theFile.close(); } //-------------------------------------------------------------------------------------------------------------- function ErrorExit(error, icon) { alert(error, scriptName, icon); exit(); } //-------------------------------------------------------------------------------------------------------------- function GetFileNameOnly(myFileName) { var myString = ""; var myResult = myFileName.lastIndexOf("."); if (myResult == -1) { myString = myFileName; } else { myString = myFileName.substr(0, myResult); } return myString; } //--------------------------------------------------------------------------------------------------------------
-
Bindings.Select does not work with the primitive properties like string etc?
My code works when I use a < String > ObjectProperty, this however does not work when I use a string instead.
Don't know if this Bindings.select behavior is a bug or expected.
The NBS are:
The impression is:
ObjectProperty < String >--> < String > ObjectProperty: abc
String-> string: null
String-> < String > ObjectProperty: null
I expect all cases to print 'abc' good
import javafx.beans.binding.Bindings; import javafx.beans.property.ObjectProperty; import javafx.beans.property.SimpleObjectProperty; import javafx.beans.property.SimpleStringProperty; import javafx.beans.property.StringProperty; public class SelectBindingTest { public static class A { private StringProperty comment = new SimpleStringProperty(this, "comment"); private ObjectProperty<String> commentObj = new SimpleObjectProperty<>(this, "commentObj"); String getComment() { return comment.get(); } StringProperty commentProperty() { return comment; } void setComment(String comment) { this.comment.set(comment); } public String getCommentObj() { return commentObj.get(); } public ObjectProperty<String> commentObjProperty() { return commentObj; } public void setCommentObj(String commentObj) { this.commentObj.set(commentObj); } } public static class B { private ObjectProperty<A> member = new SimpleObjectProperty<>(this, "member"); A getMember() { return member.get(); } ObjectProperty<A> memberProperty() { return member; } void setMember(A member) { this.member.set(member); } } public static void main(String[] args) { B b = new B(); A member = new A(); b.setMember(member); final String expectedString = "abc"; // this works SimpleObjectProperty<String> targetStringObjProperty = new SimpleObjectProperty<>("initialTargetText"); member.setCommentObj("initialSourceText"); targetStringObjProperty.bind(Bindings.<String>select(b.memberProperty(), "commentObj")); member.setCommentObj(expectedString); System.out.println("ObjectProperty<String> -> ObjectProperty<String>: " + targetStringObjProperty.get()); // this doesn't work SimpleStringProperty targetStringProperty = new SimpleStringProperty("initialTargetText"); member.setComment("initialSourceText"); targetStringProperty.bind(Bindings.selectString(b.memberProperty(), "comment")); member.setComment(expectedString); System.out.println("StringProperty -> StringProperty: " + targetStringProperty.get()); // this doesn't work either targetStringObjProperty = new SimpleObjectProperty<>("initialTargetText"); member.setComment("initialSourceText"); targetStringObjProperty.bind(Bindings.<String>select(b.memberProperty(), "comment")); member.setComment(expectedString); System.out.println("StringProperty -> ObjectProperty<String>: " + targetStringObjProperty.get()); } }
EDIT: Sorry for the horrible formatting. Can't seem to understand how to properly insert empty lines.
Read the fine print in http://docs.oracle.com/javafx/2/api/javafx/beans/binding/Bindings.html#select(javafx.beans.value.ObservableValue, java.lang.String...)
All classes and properties used in an affair of selection must be public.
If you do your commentProperty, getProperty (and setProperty, although I suppose it doesn't matter) methods in public class has, it works as expected.
Post edited by: James_D (link fixed javadoc)
-
Hello!
I have Dreamweaver 8
I tried to select several css rules at the same time create a css stylesheet, but I don't know how to do it!
This man do in this video at 03:00
http://www.YouTube.com/watch?v=ZbQ3GTFC-O0
Thank you!
DW8 does not support the selection of several classes in the properties panel. I'm sure that this feature appeared in the exit of the CS6. Unless you upgrade to CC or CS6, you must do this manually in your code.
Nancy O.
-
Is it possible to select only one column of a table for the redaction?
Hi, converted a Word doc with a table in PDF format. You will need to write a single column of the table.
Is it possible to select only one column for the redaction? When we select and drag downwards, it selects the other columns in the following lines.
With the help of Acrobat X Pro. Any help is appreciated.
Hold down the CTRL key and drag a selection.
-
How to use the variable instead of the table name in the select statement of procedure
I have a procedure with a select statement with dynamic from clause. How can I use instead of the name of the table variable.
create or replace procedure scc_chemical_analysis
is
v_table_name varchar2 (100);
Start
declare
cursor c1 is select * from v_table_name; -This is the variable name. How can I use it in the select statement.
.
.
.
.
end;Hello
something like that.
1 declare 2 vSQLString VARCHAR2(32000); 3 pTableName varchar2(1000):='EMP'; 4 BEGIN 5 vSQLSTRING := 6 'SELECT ''x'' FROM ' || DBMS_ASSERT.sql_object_name(pTableName) || ' WHERE rownum<=1 '; 7 EXECUTE IMMEDIATE vSQLSTRING; 8* END; SQL> / PL/SQL procedure successfully completed.
Maybe you are looking for
-
I use Macbook air and I get a notification to update my OS. What I do need to update or weather, even if I'm not updating... Need suggestion Thank you
-
'opagj' ipjgpijerge
-
Hello world Forget SECURITY QUESTIONS How can I reback
-
Satellite L40 - problem related to the cd/dvd driver (code 10)
Hello My cd/dvd driver no longer works. Device Manager says: (translation) this device cannot start. Code 10.What should I do? Kind regards Marte(Netherlands)
-
Hello: I am writing to say how can I make the user click two points and obtain the coordinates of the two selected points, subtract the coordinate of two selected points x 1 - x 2 and y1 - y2 and then send the value to the part of the Division of "co