Select * from <; table_name >;
Hi allI have a little scenario as if I had a table X, which is an empty array. When I do a select query on the table X, its giving out after 5-10 candy Mint. What will be the reason?
Thank you
Mani
The most plausible explanation:
http://mwidlake.WordPress.com/2012/04/18/shrinking-tables-to-aid-full-scans/
How don't know guess:
HOW to: Validate a query of SQL statement tuning - model showing
When your query takes too long...
Tags: Database
Similar Questions
-
How to select the rowid with select * from table_name
Hello guys I have a slider as follows.
When I try to reference ID to line like thisCursor c1 IS SELECT * FROM FZRASST; -- Row of type FZRASST row fzrasst_row c1%ROWTYPE;
get an identifier not valid error? How can I reference the row id without implicitly by selecting rowid? is this possible or should I change my select statement to select all the columns on the table?fzrasst_row.rowid;
Any help would be greatly appreciated.Use:
Cursor c1 IS SELECT rowid,a.* FROM FZRASST a;
SY.
-
How to create a report based on the item selected from the list of selection?
Hello
I created a tables_LOV based on:
Select table_name table_name user_tab_cols r, d
where column_name like '% _type % '.
Then I created a ListOfTables page element, display in a selection list and pointing to tables_LOV.
I run the page, and I can choose the table I want in the drop-down list.
How to create a report based on the selected element? (ex: select * from selected_table)
Thanks in advance
Salah
Hi Salah,
Allright, take a look at this page: http://apex.oracle.com/pls/apex/f?p=vincentdeelen:collection_report
I think that simulates what you are trying to accomplish. I've implemented the simplest method I could think of.
The report is based on a collection of apex. If you are not familiar with this, you should study the documentation: APEX_COLLECTION
To recreate my example, you should:
(1) create a report (interactive) on your collection
SELECT * FROM APEX_collections WHERE collection_name = 'MY_COLLECTION'
(2) create a selection list page_item for the tables that you want to display (in my case, this is called "P38_TABLES")
(3) create a dynamic action that triggers on the evolution of your selection list page_item. Dynamic action must be a parade of PL/SQL procedure the following code:
declare l_query varchar2(4000); begin l_query := 'select * from '||:P38_TABLES; if apex_collection.collection_exists ( p_collection_name => 'MY_COLLECTION' ) then apex_collection.delete_collection ( p_collection_name => 'MY_COLLECTION' ); end if; apex_collection.create_collection_from_query ( p_collection_name => 'MY_COLLECTION' , p_query => l_query ); end;
Make sure that you add your page_item 'Page to send items' section.
(4) add a real extra action that makes an update of the report area.
Here are two photos describing the da:
http://www.vincentdeelen.com/images/OTN/OTN_COLLECTION_REPORT_DA1.PNG
http://www.vincentdeelen.com/images/OTN/OTN_COLLECTION_REPORT_DA2.PNG
Good luck and greetings,
Vincent
-
Not the rows returned by the spatial query wrapped in SELECT * FROM...
Hello
When you run a query with SDO_EQUAL sub, I get a very strange behavior. The SDO_EQUAL query on its own works very well, but if I wrap in SELECT * from there, I get no results. If I wrap SDO_ANYINTERACT in SELECT * from there, I get the expected result.
It seems like the spatial index is used during the execution of the ordinary, but not when SDO_EQUAL request wrapped in SELECT * FROM. Weird. The spatial index is also not used when SDO_ANYINTERACT is wrapped in SELECT * FROM... so I don't know why that returns the correct answer.
I get this problem on 11.2.0.2 on Red Hat Linux 64-bit and 11.2.0.1 on Windows XP 32-bit (i.e., all versions of 11g I've tried). The query works as expected on 10.2.0.5 on Windows Server 2003 64-bit.
Any ideas?
Confused in Dublin (John)
Test case...
Here is the plan of the explain output for the query that works. Note that the spatial index is used.SQL> SQL> -- Create a table and insert the same geometry twice SQL> DROP TABLE sdo_equal_query_test; Table dropped. SQL> CREATE TABLE sdo_equal_query_test ( 2 id NUMBER, 3 geometry SDO_GEOMETRY); Table created. SQL> SQL> INSERT INTO sdo_equal_query_test VALUES (1, 2 SDO_GEOMETRY(3003, 81989, NULL, SDO_ELEM_INFO_ARRAY(1, 1003, 1), 3 SDO_ORDINATE_ARRAY(1057.39, 1048.23, 4, 1057.53, 1046.04, 4, 1057.67, 1043.94, 4, 1061.17, 1044.60, 5, 1060.95, 1046.49, 5, 1060.81, 1047.78, 5, 1057.39, 1048.23, 4))); 1 row created. SQL> SQL> INSERT INTO sdo_equal_query_test VALUES (2, 2 SDO_GEOMETRY(3003, 81989, NULL, SDO_ELEM_INFO_ARRAY(1, 1003, 1), 3 SDO_ORDINATE_ARRAY(1057.39, 1048.23, 4, 1057.53, 1046.04, 4, 1057.67, 1043.94, 4, 1061.17, 1044.60, 5, 1060.95, 1046.49, 5, 1060.81, 1047.78, 5, 1057.39, 1048.23, 4))); 1 row created. SQL> SQL> -- Setup metadata SQL> DELETE FROM user_sdo_geom_metadata WHERE table_name = 'SDO_EQUAL_QUERY_TEST'; 1 row deleted. SQL> INSERT INTO user_sdo_geom_metadata VALUES ('SDO_EQUAL_QUERY_TEST','GEOMETRY', 2 SDO_DIM_ARRAY(SDO_DIM_ELEMENT('X', 0, 100000, .0001), SDO_DIM_ELEMENT('Y', 0, 100000, .0001), SDO_DIM_ELEMENT('Z', -100, 4000, .0001)) 3 ,81989); 1 row created. SQL> SQL> -- Create spatial index SQL> DROP INDEX sdo_equal_query_test_spind; DROP INDEX sdo_equal_query_test_spind * ERROR at line 1: ORA-01418: specified index does not exist SQL> CREATE INDEX sdo_equal_query_test_spind ON sdo_equal_query_test(geometry) INDEXTYPE IS MDSYS.SPATIAL_INDEX; Index created. SQL> SQL> -- Ensure data is valid SQL> SELECT sdo_geom.validate_geometry_with_context(sdo_cs.make_2d(geometry), 0.0001) is_valid 2 FROM sdo_equal_query_test; IS_VALID -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- TRUE TRUE 2 rows selected. SQL> SQL> -- Check query results using sdo_equal SQL> SELECT b.id 2 FROM sdo_equal_query_test a, sdo_equal_query_test b 3 WHERE a.id = 1 4 AND b.id != a.id 5 AND sdo_equal(a.geometry, b.geometry) = 'TRUE'; ID ---------- 2 1 row selected. SQL> SQL> -- Check query results using sdo_equal wrapped in SELECT * FROM SQL> -- Results should be the same as above, but... no rows selected SQL> SELECT * FROM ( 2 SELECT b.id 3 FROM sdo_equal_query_test a, sdo_equal_query_test b 4 WHERE a.id = 1 5 AND b.id != a.id 6 AND sdo_equal(a.geometry, b.geometry) = 'TRUE' 7 ); no rows selected SQL> SQL> -- So that didn't work. Now try sdo_anyinteract... this works ok SQL> SELECT * FROM ( 2 SELECT b.id 3 FROM sdo_equal_query_test a, sdo_equal_query_test b 4 WHERE a.id = 1 5 AND b.id != a.id 6 AND sdo_anyinteract(a.geometry, b.geometry) = 'TRUE' 7 ); ID ---------- 2 1 row selected. SQL> SQL> -- Now try a scalar query SQL> SELECT * FROM ( 2 SELECT b.id 3 FROM sdo_equal_query_test a, sdo_equal_query_test b 4 WHERE a.id = 1 5 AND b.id != a.id 6 ); ID ---------- 2 1 row selected. SQL> spool off
Here is the plan of the explain output for the query is not working. Note that the spatial index is not used.SQL> EXPLAIN PLAN FOR 2 SELECT b.id 3 FROM sdo_equal_query_test a, sdo_equal_query_test b 4 WHERE a.id = 1 5 AND b.id != a.id 6 AND sdo_equal(a.geometry, b.geometry) = 'TRUE'; Explained. SQL> @?/rdbms/admin/utlxpls.sql PLAN_TABLE_OUTPUT ------------------------------------------------------------------------------------------------------------ Plan hash value: 3529470109 ------------------------------------------------------------------------------------------------------------ | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | ------------------------------------------------------------------------------------------------------------ | 0 | SELECT STATEMENT | | 1 | 7684 | 3 (0)| 00:00:01 | | 1 | RESULT CACHE | f5p63r46pbzty4sr45td1uv5g8 | | | | | | 2 | NESTED LOOPS | | 1 | 7684 | 3 (0)| 00:00:01 | |* 3 | TABLE ACCESS FULL | SDO_EQUAL_QUERY_TEST | 1 | 3836 | 3 (0)| 00:00:01 | |* 4 | TABLE ACCESS BY INDEX ROWID| SDO_EQUAL_QUERY_TEST | 1 | 3848 | 3 (0)| 00:00:01 | |* 5 | DOMAIN INDEX | SDO_EQUAL_QUERY_TEST_SPIND | | | 0 (0)| 00:00:01 | ------------------------------------------------------------------------------------------------------------ Predicate Information (identified by operation id): --------------------------------------------------- 3 - filter("B"."ID"!=1) 4 - filter("A"."ID"=1 AND "B"."ID"!="A"."ID") 5 - access("MDSYS"."SDO_EQUAL"("A"."GEOMETRY","B"."GEOMETRY")='TRUE') ..... other stuff .....
SQL> EXPLAIN PLAN FOR 2 SELECT * FROM ( 3 SELECT b.id 4 FROM sdo_equal_query_test a, sdo_equal_query_test b 5 WHERE a.id = 1 6 AND b.id != a.id 7 AND sdo_equal(a.geometry, b.geometry) = 'TRUE' 8 ); Explained. SQL> @?/rdbms/admin/utlxpls.sql PLAN_TABLE_OUTPUT -------------------------------------------------------------------------------------------------- Plan hash value: 1024466006 -------------------------------------------------------------------------------------------------- | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | -------------------------------------------------------------------------------------------------- | 0 | SELECT STATEMENT | | 1 | 7684 | 6 (0)| 00:00:01 | | 1 | RESULT CACHE | 2sd35wrcw3jr411bcg3sz161f6 | | | | | | 2 | NESTED LOOPS | | 1 | 7684 | 6 (0)| 00:00:01 | |* 3 | TABLE ACCESS FULL| SDO_EQUAL_QUERY_TEST | 1 | 3836 | 3 (0)| 00:00:01 | |* 4 | TABLE ACCESS FULL| SDO_EQUAL_QUERY_TEST | 1 | 3848 | 3 (0)| 00:00:01 | -------------------------------------------------------------------------------------------------- Predicate Information (identified by operation id): --------------------------------------------------- 3 - filter("B"."ID"!=1) 4 - filter("A"."ID"=1 AND "B"."ID"!="A"."ID" AND "MDSYS"."SDO_EQUAL"("A"."GEOMETRY","B"."GEOMETRY")='TRUE') ..... other stuff .....
Yes, this is the bug 9740355. You can get a 11.2.0.1 patch, or wait for 11.2.0.3.
-
Problem with "select * from table" for dynamic IN the list
I have a 'for loop' based a query that does not work. The query is supposed to return the name of the table, the data type and the name of the column in the columns poses a number of name filters. The problem I have is when I run the query into a TOAD with:
schema_list value SCOTT, MED and the clause of 'in' as ' to (select * from table (DATAPUMP_UTIL.in_list_varchar2 (:schema_list))))»
The query returns the expected lines.
When I have it in my code as shown below it returns no rows. I don't know what hurts me, but any help would be great! I'm on Oracle 11.1.0.6.0.
Published by: BluShadow on June 29, 2011 16:11PROCEDURE export_schema_ondemand (schema_list VARCHAR2, encrypt_file NUMBER default 0, mask_sensitive_data NUMBER default 0) IS ... schema_list_t := my_package.in_list_varchar2(schema_list); ... for c1 in ( with ok_to_mask as ( select owner, table_name, column_name from all_tab_columns where owner in (select * from table(schema_list_t)) minus (SELECT c.owner, p.table_name, cc.column_name FROM all_cons_columns cc, all_constraints p, all_constraints c WHERE c.owner in (select * from table(schema_list_t)) c.constraint_type = 'R' AND p.owner = c.r_owner AND p.constraint_name = c.r_constraint_name AND cc.owner = c.owner AND cc.constraint_name = c.constraint_name AND cc.table_name = c.table_name UNION ALL SELECT c.owner, cc.table_name, cc.column_name FROM all_cons_columns cc, all_constraints p, all_constraints c WHERE p.owner in (select * from table(schema_list_t)) AND p.constraint_type in ('P','U') AND c.r_owner = p.owner AND c.r_constraint_name = p.constraint_name AND c.constraint_type = 'R' AND cc.owner = c.owner AND cc.constraint_name = c.constraint_name AND cc.table_name = c.table_name)) select atc.table_name as mask_tab, atc.column_name as mask_col, atc.data_type as mask_type from all_tab_columns atc, ok_to_mask otm where atc.owner = otm.owner and atc.table_name = otm.table_name and atc.column_name = otm.column_name and atc.owner in (select * from table(schema_list_t)) and ( atc.column_name like '%LAST%NAME%' or atc.column_name like '%FIRST%NAME%' or atc.column_name like '%NAME_LAST%' or atc.column_name like '%NAME_FIRST%' or atc.column_name like '%ENAME%' or atc.column_name like '%SSN%' or atc.column_name like '%DOB%' or atc.column_name like '%BIRTH%' ) and atc.column_name not like '%PHYSICIAN_%' and atc.column_name not like '%DR_%' and atc.column_name not like '%PROVIDER_%' and atc.column_name not like 'PRESCRIBER_%' ) loop ... FUNCTION in_list_varchar2 (p_in_list IN VARCHAR2) RETURN VARCHAR2_TT is l_tab VARCHAR2_TT := VARCHAR2_TT(); l_text VARCHAR2(32767) := p_in_list || ','; l_idx NUMBER; BEGIN LOOP l_idx := INSTR(l_text, ','); EXIT WHEN NVL(l_idx, 0) = 0; l_tab.extend; l_tab(l_tab.last) := TRIM(SUBSTR(l_text, 1, l_idx - 1)); l_text := SUBSTR(l_text, l_idx + 1); END LOOP; RETURN l_tab; END in_list_varchar2;
addition of {noformat}{noformat} tags. PLEASE READ {message:id=9360002} TO LEARN TO DO THIS YOURSELF.
Hello
If you have a query that works well when you launch it directly, and that breaks down when you start with a procedure, this can be a problem of privileges.
Points of view ALL_ * shows only the objects you have access, but using a procedure, privileges must be granted directly to the user and not with a role.
You should check the SELECT privileges to your user through roles and give them directly to the user.
Hope this will help.
Sylvie
-
Hello
I solve the problem much more complex, but I'm stuck on a simple question:
I get ORA-00936 missing expression all the time in this sql:
SELECT (SUM (SELECT ma_fonction (table.column) of double)) AS my_sum, table.anothercolumn FROM table
I get the same thing if I just do something as simple as:
SELECT id, table FROAM (SUM (SELECT 1 + 1 double) as double my_sum)
What's not here? I know it's something with the amount and the select after it, but what is it? Please crazy me :)
Thank you very much
Published by: koszta5 on November 11, 2010 05:15Something like that?
create function my_function(Indata number) return number as begin Return Indata; end; With table_name as ( Select 1 column_1, 'das' anothercolumn from dual union all Select 1, 'des' from dual union all Select 1, 'dis' from dual union all Select 1, 'dos' from dual union all Select 1, 'dus' from dual ) SELECT (SUM(my_function(column_1))) AS my_sum, anothercolumn FROM table_name group by anothercolumn
-
Original title: windows Vista SP2 is not start properly. Very, very slow and do not have access to open anything.
I was able to boot into safe mode and view the event viewer, and that's what he said:
./root/CIMV2
SELECT * FROM __InstanceModificationEvent WITHIN 60 WHERE TargetInstance ISA 'Win32_Processor' AND TargetInstance.LoadPercentage > 99 0 x 80041003 Hi Noomcy,
1. don't you make changes before the show?
This problem occurs if the WMI filter is accessible without the necessary permissions. To resolve this problem, we recommend that you run the script inthis article and check the result.
See also Optimize Windows Vista for better performance
Visit our Microsoft answers feedback Forum and let us know what you think.
-
SQLite Select * from table1 - cannot see last line
Hello
I did some testing with SQLite component on the Simulator and ran into a problem. When I try to retrieve the data from the database (storage works great... open the db to an observer and data file has been stored properly), I can't get the last line of the query. I have something in the sense of the following:
try { Statement _statement = m_db.createStatement("SELECT * FROM TABLE1"); _statement.prepare(); _statement.execute(); Cursor _cursor = _statement.getCursor(); if (_cursor != null) { while (_cursor.next()){ Row _row = (Row)_cursor.getRow(); // Read row. For example: int idx1 = _row.getColumnIndex("id"); int idx2 = _row.getColumnIndex("name"); String _id = _row.getString(idx1); String _name = _row.getString(idx2); } } _statement.close(); _cursor.close(); } catch (Throwable e) { Dialog.alert("unable to get row data"); }
The first problem is that _cursor.next does not succeed, and the loop is not executed. If I change the code to force it to enter the loop (ie. cursor.first and run the .getPixel etc... in any case), I always get the LAST row, even when I use the position (1, 2, 3, 4... etc) function. It's pretty boring. I develop this 5.0 and testing with 9700 Simulator. Any ideas why I would see only the last row?
Why the next file in the thropugh code above, I can't retrieve a row in the database?
Note I tried dogin cursor.first ()... . Run the .GetPixel and the. next(), don't always gets me the line after line and the other always returns false. I do a select empty in the database, all lines should be there (checked the structure of data in another program... it is fine), no idea why it isn't here?
Thanks in advance.
Figured this out, the _statement.execute (); should not be there.
-
What privileges granted to select from all the PDB files
Why the two selected does not return the same result? Or if you want the broader question - what privileges granted to select from all the PDB files.
I want to leave common user that I created to select and see all of the synonyms of all PDB files.
conn / as sysdba
create user c##nir identified by c##nir container=all;
grant connect,dba,resource to c##nir container=all;
grant select on cdb_synonyms to c##nir container=all;
select CON_ID from cdb_synonyms group by CON_ID;
CON_ID
----------
1
4
11
10
14
5
8
13
3
7
15
6
12
9
conn c##nir/c##nir
select CON_ID from cdb_synonyms group by CON_ID;
CON_ID
----------
1
select CON_ID from containers(dba_synonyms) group by CON_ID
*
ERROR at line 1:
ORA-00942: table or view does not existYou must use the CONTAINER_DATA clause:
ALTER USER ##nir set container_data = container c all = current;
After running the above command, try to select again to cdb_synonyms and you will see the data of all containers.
Read more in my Post of Blog
-
Select * from v$ PDB returning some lines of non - sys account DBA
I am unable to find any documentation related to this privilege can benefit a common user in CBD root of database that allows the user to select from V$ PDB
Server11:CPPPRD:Oracle: / u01/app > sqlplus C ##IMDBA - this user has a DBA role in the base of the root
SQL * more: Production of the version 12.1.0.2.0 on Mon Sep 14 08:26:17 2015
Copyright (c) 1982, 2014, Oracle. All rights reserved.
Enter the password:
Last successful login time: Fri Sep 11-2015 15:55:05-0600
Connected to:
Database Oracle 12 c Enterprise Edition Release 12.1.0.2.0 - 64 bit Production
With the partitioning, OLAP, Advanced Analytics, Real Application Testing
and Unified audit options
SQL > select * from v$ PDB;
no selected line
SQL > exit
Disconnected from the database Oracle 12 c Enterprise Edition Release 12.1.0.2.0 - 64 bit Production
With the partitioning, OLAP, Advanced Analytics, Real Application Testing
and Unified audit options
Server11:CPPPRD:Oracle: / u01/app > sqlplus / as sysdba
SQL * more: Production of the version 12.1.0.2.0 on Mon Sep 14 08:26:36 2015
Copyright (c) 1982, 2014, Oracle. All rights reserved.
Connected to:
Database Oracle 12 c Enterprise Edition Release 12.1.0.2.0 - 64 bit Production
With the partitioning, OLAP, Advanced Analytics, Real Application Testing
and Unified audit options
SQL > select name from v$ PDB;
NAME
------------------------------
PDB$ SEEDS
APPPROD
SQL > exit
Disconnected from the database Oracle 12 c Enterprise Edition Release 12.1.0.2.0 - 64 bit Production
With the partitioning, OLAP, Advanced Analytics, Real Application Testing
and Unified audit options
If you want that the common user will be able to view this data across all containers, you will need to use the container_data clause.
Run through the user SYS to the CBD$ ROOT the following command:
change user C ##IMDBA set container_data = container all = current
BTW, you can also specify that C ##IMDBA will have the ability to view the data across all the container only for V$ PDB by running:
change user ##IMDBA set container_data = all Molok sys.v_ C $pdbs = current
And you can also check the settings of data container by selecting CDB_CONTAINER_DATA
According to the Oracle doc:
container_data_clause
The
container_data_clause
allows the game and changeCONTAINER_DATA
to a common user attributes. Use of theFOR
clause to indicate whether to set or change the defaultCONTAINER_DATA
attribute or a specific objectCONTAINER_DATA
attribute. These attributes determine all of the containers (which can never exclude the root) whose data will be visible viaCONTAINER_DATA
objects to the common user specified when the current session is the root.Read more here:
http://docs.Oracle.com/database/121/Admin/cdb_mon.htm#ADMIN13931
http://docs.Oracle.com/database/121/SQLRF/statements_4003.htm#SQLRF01103
-
Is it possible to get the name of the tool selected from a script?
Hello
Is it possible to get the name of the tool currently selected from a script?
I found this:
https://forums.adobe.com/thread/579195
https://forums.adobe.com/thread/2161923
But these works in Photoshop... So, it is possible to get the name of the tool currently selected in InDesign? Is there a universal method that will work in other applications?
I think that there is a toolBoxTools, app.toolBoxTools...
P.
-
To create an interactive report in the apex by selecting from multiple tables
Hi, I am creating an interactive report by selecting from multiple tables.
SELECT w.FIRST_NAME as name, w.SURNAME as name, i.ROAD Road, i.DATE_OF_INC as DATE_OF_INC, S.STATEMENT as a STATEMENT OF Declaration
JOIN THE
WITNESS w
ON w.witness_id = s.FK1_WITNESS_ID
JOIN THE
Incident I have
WE
i.incident_no = w.FK1_INCIDENT_NO
JOIN THE
user_station ps
ON ps.station_id = i.nearest_station_id
JOIN THE
the user in.
WE
in. STATION_ID = ps.station_id
WHERE po.officer_id = 1
by I continue to encounter this error "the report query requires a unique key to identify each row. The supplied key cannot be used for this query. Please change the report attributes to define a unique key column. "ORA-01445: cannot select ROWID from where sample, a join without key preserved table view '
So I googled around and found that in the attibutres tables report, I need to change the "LINK" COLUMN so first, I changed "Link to custom target", but the report is so I changed it to "Exclude link Clolumn" again, the report didn't report and I STILL got a blank page with only the tabs.
I wonder you can not create a report by selecting from multiple tables?
If you can please I need your help.
Thank you
You can, but in this case, it might be easier to build your report tables that are joined Oracle views and then build your report out of the newly built sight...
Or wrap a selection around your selection with joins, and then make the where clause on the external selection...
Thank you
Tony Miller
Software LuvMuffin
Ruckersville, WILL -
How to get data in the procedure after CREATE TABLE table1 AS SELECT * from table2
Hello
can any body tell me how to get the data in the new table created in the procedure. because it gives following error.
- Error (47,21): PL/SQL: ORA-00942: table or view does not exist
tableName: = "BCKUP_" | TO_CHAR (sysdate, 'ddmmrrrr');
tableDDL: = 'CREATE TABLE' | tableName. "AS SELECT * FROM Table1 where to_char(MSG_IN_TIME,''dd-mon-rrrr'') < sysdate - ' | daysNumber;
EXECUTE IMMEDIATE backUpDDL;
COMMIT;
DELETE FROM Table1;
How to select the data in the newly created table. as...
Select * from ". tableName;
Do not choose anything to get the number...
Just after backupDDL EXECUTE IMMEDIATE, simply refers to SQL % ROWCOUNT - who will be the number of lines.
Oh and DDL engages automatically, your commitment is redundant.
-
Insert into MDQ_OLD select * from table (lt_monitorMdq);
I'm trying to insert into a table that has only a single column, which is a column of a user defined type (UDT). The UDT is nested, that is one of the attributes of the UDT is an another UDT.
I aim to insert into the table like this pseudo-code:
INSERT INTO T1 SELECT * FROM THE UDT;
CREATE TABLE MDQ_OLD (myMDQ UDT_T_MONITOR_MDQ)
NESTED TABLE myMDQ
(T1_NEW) ACE STORE
THE NESTED TABLE MONITOR_MDQ_PRIM_RIGHTS
STORE AS T2_NEW);
The MONITOR_MDQ_CLI procedure. Read below returns the parameter lt_monitorMdq which is a UDT type as announced. The statement "insert into select MDQ_OLD * table (lt_monitorMdq);" fails, while the second insert statement works.
Is it possible to get the first statement of work?
I'm on Oracle 11 g 2.
DECLARE
lt_monitorMdq UDT_T_MONITOR_MDQ;
BEGIN
MONITOR_MDQ_CLI. Reading (TRUNC (SYSDATE),
TRUNC (SYSDATE),
NULL,
NULL,
"MILLION BTU.
lt_monitorMdq); -Note lt_monitorMdq is an OUT parameter
-This insert does not work
Insert into MDQ_OLD select * from table (lt_monitorMdq);
BECAUSE me in 1... lt_monitorMdq.count
LOOP
Dbms_output.put_line ('lt_monitorMdq: ' | .mdq_id lt_monitorMdq (i));
-This integration works
INSERT INTO MDQ_OLD (MYMDQ)
VALUES (UDT_T_MONITOR_MDQ (UDT_R_MONITOR_MDQ)
lt_monitorMdq (i) .gasday,
1,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
() UDT_T_MONITOR_MDQ_PRIM_RIGHT
() UDT_R_MONITOR_MDQ_PRIM_RIGHT
1,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
(NULL)));
END LOOP;
END;
have you tried:
INSERT INTO MDQ_OLD (myMDQ) VALUES (lt_MonditorMDq);
curiosity:
Is there a particular reason, why you have created a table with a single column of type UDT instead of:
CREATE TABLE... OF UDT_T_MONITOR_MDQ;
I can tell you from experience that using a nested table, you can easily query the data in the nested table.
MK
-
I use a PC and I used LR3. I'm a newcomer to LR, so patient with me! My problem is related to the import function.
I have a photo library on an external hard drive. I've slowly been import previews of the photos selected from the library in my catalog, adding them during the import process - well. But now, I hit a problem. Another folder in my library contains several subfolders, each containing a number of photos (a mixture of RAW steals (naves) and jpg). I was importing found in my catalog each Subfile in turn, using the Add function, usually of the jpgs only from each Subfile. It works fine, until I reached a particular Subfile. For some reason when I try to import from it and select the secondary file as a Source, only the RAW (NEF) images appear in the preview pane (sorry, forgot the correct term for it!). I know that jpg files are in this auxiliary file on the external hard drive, because when I view its content in Windows, they are all there. But try as I can (choose the file under source, select the folder parent as a source, try to copy or move them, instead of adding them), nothing seems to work. Since they do not appear in the preview pane, I can't import them. It does appear that this a Subfile where the problem exists, but I don't see anything that is different from the others (names of files under all use the same structure - yyyy-mm-dd_custom name, and pictures in all subfolders are adopting the same denomination structure too - yyyy-mm-dd_sequential number_custom name.) NAVE/JPG. So what I am doing wrong? Any ideas please.
It is possible that the images in this particular subfolder were taken in your camera in RAW + JPEG. If so, you will need to go to preferences under the general tab and make sure the box "processing JPEG files files next to raw as separate photos" is checked.
However, assuming that this is the case, there is really no reason to import the JPEG file if you already have the RAW file.
Maybe you are looking for
-
I can't do the importing CDs ITunes says "the required folder is not found."
Hi all I have a windows laptop with no disk drive 10. I am using an external disc drive to import CDs into iTunes. Everytime I try, it will be important to a song, and then he said: ' year error occurred importing the song title. " required folder is
-
I can't understand how to install controls PID with Labview 2009. What part of the list of the products installation run to get these screws We have the full license of the site which is available to academic institutions, we should have it I think.
-
I need to get the IP history Journal
I fear that my account has been compromised, and you want to get the IP history Journal. Thanks Scott
-
I want to downgrade my CQ40-339TU for WinXP. Where can I download the drivers for Windows XP.. ? Matt
-
switch between applications won't go away
This is a new feature. After upgrade to 8.1, this embarrassing red arrow appears and won't disappear that tells me that I can "switch between applications. How to get rid of him? I had to do a full reboot