dual-table

how to select a list of 10,000 unique ids from dual in oracle SQL

五迷三道 提交于 2019-12-18 18:33:33
问题 So I can't create or edit tables (I'm a user with read only permission) and I want to look up 10,000 unique id's. I can't put them inside of an IN() statement because oracle limits over 1000 items. Is it possible to select this entire list from the DUAL table in oracle? Something like: select 'id123,id8923,id32983,id032098,id308230,id32983289' from DUAL 回答1: Use a collection (they are not limited to 1000 items like an IN clause is): SELECT COLUMN_VALUE AS id FROM TABLE( SYS.ODCIVARCHAR2LIST(

What is the equivalent of the Oracle “Dual” table in MS SqlServer?

流过昼夜 提交于 2019-12-18 13:52:20
问题 What is the equivalent of the Oracle "Dual" table in MS SqlServer? This is my Select : SELECT pCliente, 'xxx.x.xxx.xx' AS Servidor, xxxx AS Extension, xxxx AS Grupo, xxxx AS Puerto FROM DUAL; 回答1: In sql-server , there is no dual you can simply do SELECT pCliente, 'xxx.x.xxx.xx' AS Servidor, xxxx AS Extension, xxxx AS Grupo, xxxx AS Puerto However, if your problem is because you transfered some code from Oracle which reference to dual you can re-create the table : CREATE TABLE DUAL ( DUMMY

What is the dual table in Oracle?

北战南征 提交于 2019-12-17 02:24:12
问题 I've heard people referring to this table and was not sure what it was about. 回答1: It's a sort of dummy table with a single record used for selecting when you're not actually interested in the data, but instead want the results of some system function in a select statement: e.g. select sysdate from dual; See http://www.adp-gmbh.ch/ora/misc/dual.html 回答2: It is a dummy table with one element in it. It is useful because Oracle doesn't allow statements like SELECT 3+4 You can work around this

Recreate the Oracle DUAL table

ぃ、小莉子 提交于 2019-12-12 19:15:21
问题 Is there any way to create / recreate dual table in Oracle? It was accidentally dropped. 回答1: You should probably contact Oracle Support. Do you have a backup? If so, restore the table from your backup. Otherwise (and if contacting Oracle is not an option for you)... Oracle has special optimizations for DUAL, but I don't know if there's anything special about the table itself. I would just treat it like a normal table and see what happens. Try this: Connect as SYSDBA and then execute these

Internal Functionality of DUAL table?

时光总嘲笑我的痴心妄想 提交于 2019-12-11 04:09:13
问题 Will local database get disturb if we create DUAL table ? Kindly Suggest me ? create table DUAL ( x varchar2(1) ); 回答1: No you cannot create a dual table. DUAL table is owned by SYS and SYS owns the data dictionary so you can not create it. See the wiki The DUAL table is a special one-row table present by default in all Oracle database installations. It is suitable for use in selecting a pseudocolumn such as SYSDATE or USER. The table has a single VARCHAR2(1) column called DUMMY that has a

The magic of DUAL

ε祈祈猫儿з 提交于 2019-12-10 14:08:48
问题 Under normal conditions (not using SYS or maybe using it)- SQL> select * from dual; D - X Under not so normal conditions (connected as SYS )- SQL> alter database close; Statement processed. SQL> select * from dual; ADDR INDX INST_ID D -------- ---------- ---------- - 00FA6E50 0 1 X I know DUAL is a special magic table (etc. etc.) but What is different with DUAL when the DB is on standby? What is the relevance if ADDR , INDX , INST_ID in standby? 回答1: Tom Kyte did an excellent job answering

What is the equivalent of the Oracle “Dual” table in MS SqlServer?

倖福魔咒の 提交于 2019-11-30 10:42:41
What is the equivalent of the Oracle "Dual" table in MS SqlServer? This is my Select : SELECT pCliente, 'xxx.x.xxx.xx' AS Servidor, xxxx AS Extension, xxxx AS Grupo, xxxx AS Puerto FROM DUAL; In sql-server , there is no dual you can simply do SELECT pCliente, 'xxx.x.xxx.xx' AS Servidor, xxxx AS Extension, xxxx AS Grupo, xxxx AS Puerto However, if your problem is because you transfered some code from Oracle which reference to dual you can re-create the table : CREATE TABLE DUAL ( DUMMY VARCHAR(1) ) GO INSERT INTO DUAL (DUMMY) VALUES ('X') GO You do not need DUAL in mssql server in oracle select