How can get the structure of the table without data
Hai AllI have two tables namely T1, T2 and these have some fields and I need to create a new table and the table two and only the header fields that I need but not the data.
Thanks and greetings
srikkanth. M
Hello
Something like that
SQL> create table emp_bkp as
2 select * from emp where 1=2;
Table created.
SQL> select * from emp_bkp;
no rows selected
or
SQL> drop table emp_bkp;
Table dropped.
SQL> create table emp_bkp
2 as
3 select e.empno,e.ename,e.deptno,d.dname,e.sal
4 from emp e,dept d
5 where e.deptno = d.deptno
6 and
7 1=2;
Table created.
SQL> select * from emp_bkp;
no rows selected
SQL> desc emp_bkp
Name Null? Type
----------------------------------------- -------- --------------------------
EMPNO NUMBER(4)
ENAME VARCHAR2(10)
DEPTNO NUMBER(2)
DNAME VARCHAR2(14)
SAL NUMBER(7,2)
Twinkle
Tags: Database
Similar Questions
-
How to get the table without segment tablespace
Hello
I have a few tables in 11.2, which were created with creation of deferred segment and did so no segment/measure not yet. They already appear in dba_tables thus identical to the tab$, but do not have a defined tablespace.
However, using dbms_metadata.get_ddl () the DOF resulting has the correct tablespace name. But what a view or table that I must query for this information with SQL?
Thank you
Robert
Hello
No, none of these tables is temporary, but it turns out that all the affected tables are ITO and so I have to check dba_indexes for the tablespace and the dba_indexes index_name when looking for a segment.
Thank you
Robert
-
I am new to Adobe Stock. An Adobe stock image is usable like a Facebook profile picture? My concern is that the image profile can saved by other users of Facebook... so they can get the image without having to pay Adobe for it.
Hi martyc98498222,
I suggest you to use the Image of Adobe Stock for social media, also you can refer to the following document: https://helpx.adobe.com/stock/faq.html#Adobe%20Stock%20usage%20and%20licensing
Kind regards
Tanuj
-
How can get us a new operating system without having to buy one?
Original title: Erased from the os
My son has updated w 7 w 10 and somehow deleted the operating system. How can get us a new operating system without having to buy one?
Hello
Thank you for the update on the issue.
Yes, you are right that DELL support should suggest your son even. But don't worry, finally, you are able to find the product key.
Feel free to post on the forum if you have any concerns more associated with Windows. We will be happy to help you again.
Kind regards
-
How to get the timestamp of data DAQmx Read
Hello
I have to read 4 analog channels using DAQmx AI read in LabVIEW 2012. I am using screws DAQmx.
Acquisition rate is 4000 samples per second, and the number of samples per channel is 200.
I use only one task DAQmx to read the data. I get 4 data tables for 4 channels each table length is 200, every time, DAQmx Read happens.
But I want to get the seal of these 200 samples per channel. How to get the seal of these samples, made me know.
Thank you
You have not indicated your code. If you choose to read the waveform data, the cluster includes t0 and dt. That's all the information you need.
-
How to get the difference in dates in days
Hi friends,
How to get the date difference between two dates exactly
date2-date1 days exactly... shouyld rounded to the nearest value of...
and one entire display i mean positive integer
Select round ((sysdate) - to_date (date_start)), date_start days of per_periods_of_service
This gives negative also resultHello
776317 wrote:
Hi friends,How to get the date difference between two dates exactly
date2-date1 days exactly... shouyld rounded to the nearest value of...
Date1 - date2 is the exact number of days is after date2 date1. (It is as accurate as possible, given that the DATEs do not have fractions of a second).
and one entire display i mean positive integer
Select round ((sysdate) - to_date (date_start)), date_start days of per_periods_of_serviceYou want to probably get the exact number of days first, then ROUND this number:
SELECT ROUND (SYSDATE - TO_DATE (date_start, ...)) AS days FROM per_periods_of_service;
Always pass arguments at least 2 to TO_DATE:
(1) the string to be converted, and
(2) a saying string how (1) is formattedThis gives negative also result
Right; If date1 is before date2 then date1 - date2 returns a negative number.
If you want to never get a negative value, use ABS (date2 - date1). If it returns 4, then you know that one of the DATEs was 4 days before the other, but you won't know who was earlier.I hope that answers your question.
If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) and also publish outcomes from these data.
Explain, using specific examples, how you get these results from these data.
Always tell what version of Oracle you are using. -
How can get the bar menu as file, save etc.
I m mozzila firefox 39.02.0 to gradution and study at the office. So, I want to get the home menu screen.
Menu bar at the top, then more easy 4 me.Thank you
............
BulbulDo you mean on your Android device? Firefox for Android uses a menu drop down, or if the device has a menu button next to the home button, it uses this "hardware" button I don't think that it is possible to add a menu bar of Firefox for Android.
If you meant on Windows:
You can use one of the following methods to display the toolbar list and activate the menu bar it:
- Right click on a place empty on the tab bar (or the button '+')
- Press the Alt key to activate the classic menu bar > view > toolbars
- in customize mode > show/hide toolbars (see: Customize Firefox commands, buttons, and toolbars)
To activate the menu bar, toolbar bookmarks or other bars, click it in the list.
Who help me?
If your Firefox does not display the toolbars, or don't shows them that when you drag the mouse to the top of the screen, try the key F11 to exit full screen mode. (The F11 key also puts you in the view full screen to the normal display mode.)
-
I'm trying to update my phone. The only available update is iOS 9.2.1. When I try to upgrade, it tells me that I can't upgrade because I am is no longer connected to the internet. How can I upgrade my phone?
Connect to the internet.
-
How to get the Application Build Date and time?
Hi guys,.
I am developing application in Cascade.
What is the API I can use to get the construction Date of the application and Tiime?
These macros are expanded to C-strings at compile time. This is how/where to use it. Following an example would work I think:
fprintf (stderr, "construction date is %s, construction time is %s\n", __DATE__, __TIME__);
-
How to get the ORACLE_HOME without connecting to the unix Server
Hi all!
DOE anyone have an idea how to retrieve the ORACLE_HOME value directly from the database (connection to SQL only), without connecting to the server?
I need to check that the solution works in all types of configurations Oracle - for example, I can find it by running:SQL > show spfile parameters
and cut this string "C:\ORACLE\PRODUCT\10.2.0\DB_1\DBS\SPFILERGDB. ORA'-> 'C:\ORACLE\PRODUCT\10.2.0\DB_1', to get the value of ORACLE_HOME, BUT - this will not work on configurations ALL Oracle (most of them, but not all) as the DBA can change the path.
VALUE OF TYPE NAME
SPFile chain C:\ORACLE\PRODUCT\10.2.0\DB_1\DBS\SPFILERGDB. ORA
So, you may have a better idea?
Thank you!
MaayanMaybe you can use something like this
SQL> select file_spec from dba_libraries where library_name='ORDIMLIBS'; FILE_SPEC ------------------------------------------------------------ /u01/app/oracle/product/1110/dbhome/lib/libordim11.so
-
How to get the control instance data in Bean managed when data mutiple controls exist
Below is my way. This works if there is only one control. is there an api that can be used to get the instance of the data control by name?
DCDataControl dc = BindingContext.getCurrent().getDefaultDataControl(); if(dc != null){ AppModuleImpl am = (AppModuleImpl)dc.getApplicationModule(); ... }
I don't want to use this medium orginial.
String amDef = "model.AppModule"; String config = "AppModuleLocal"; ApplicationModule am = Configuration.createRootApplicationModule(amDef, config); ViewObject vo = am.findViewObject("ObjectView1");
Hello
I guess you have a binding method as the first activity in your stubborn workflow. Open your workflow in preview mode, right-click on your connection method and say «Go to the PageDef» This will create a definition file page for the binding of your method. You can use this to put the iterator binding that you want to access from your init method.
Rami
-
How to get the year of Date data
Hi all
I have the following scenario:
County - Date - Code
5 DS - 01/09/2009
5 DS - 15/01/2009
5 LO - 21/01/2009
1. IT - 02/09/2009
5 DS - 03/09/2009
5 LO - 04/09/2009
4 DS - 05/09/2009
5 - IS - 06/09/2009
5 DS - 07/09/2009
5 - IS - 08/09/2009
3 DS - 09/09/2009
5 DS - 10/09/2009
5 LO - 11/09/2009
2 DS - 12/09/2009
5 DS - 01/09/2010
5 LO - 02/09/2010
4 DS - 03/09/2010
How can I only CDA data for 2009 and one year for 2010... Is meant by CDA 2009 data until the day of the date for example, if its 9 March today... TBE outcome will bring full jan, Feb and until the 9th day of March ' 09 and full jan, Feb and until the 9th day of March 10
Thank you
Published by: [email protected] on March 9, 2010 23:03
Published by: [email protected] on March 9, 2010 23:06Something like:
where dt <= trunc(dt,'YYYY')+(trunc(sysdate,'DD')-(trunc(sysdate,'YYYY'))
"Dt" corresponding to your date column.
-
How to get the time to date?
Hi Sir,
I need to recover the time to date.
' like ' 2012-10-03 04:32.
to retrieve the only time where it's 04:32
What is the query for this?
Thank youHi user,
You can use TO_CHAR function to obtain the hour alone
SELECT TO_CHAR (TO_DATE ('2012-10-03 04:32:00', 'YYYY-MM-DD HH24:MI:SS'), 'HH24:MI:SS' ) TI_ME FROM DUAL
Thank you
Shankar -
Hello! I have a problem with my data - I get in a wide range of 1 x 1000, but it's the repeated measures, each taking about 500 data points. I want to break this table for this data string start a new column in my table every 500 points given. I don't know how to do it-please help!
datacompiler100 wrote:
Hey thanks for the sponsor and the first off I must apologize for the State, I am attaching my VI. I put the part of the VI that I am working on (my team has access, so didn't post everything here) and also attached the data file (when just written in a spreadsheet file, not through the attached VI). I want to convert the long row of data and then start a new column every 50, 100, 5 points (user-defined).
Using the data from the file, you can reshape everything simply (as you already!), followed by transposition (since you want columns instead of rows). 2D arrays must always be rectangular, so the last column is filled with zeros if necessary. Is that what you want?
Of course if you try to add a new column in a file, that will not work. You can only add lines in an existing file because of the way the data is organized. To add columns, the entire file must be read, intertwined and all re-written new data in the file.
-
How can get the new button tab on the side right and right next to the most recent tab?
Firefox has just updated and the 'new tab' button is a stand-alone icon now. I can place on the far left of my bar tabs or the far-right of my tab bar. It used to be to the right of the tabs, directly next to the tabs.
Please give me the option to have him again as former.
Chrome is still using the classic way, I do not understand what you people think this.
This isn't a threat, or something but I'm saying that it hurts me terribly uncomfortable to use Firefox like this, and I prefer to use Chrome now because the new tab button adjacent to and to the right of the tabs.
Please, I would still rather using Firefox, but not in this State. Please give me the option to return to the classic.
Thank you.
You can click default settings in the palette to customize to reset the toolbar customization.
Maybe you are looking for
-
How to close the foxfire Web site in order to download adobe reader and flash player?
-
I have a HP Deskjet F4580 all-in-One printer supports and an ipad 2, I try to print by using a Wi - Fi connection, ipad recognizes the printer, printer blue led continues to Flash indicating that the printer is not recognized on my network, how can I
-
import music from cd to itunes
I have a 2014 Macbook Pro, which does not have a CD slot. I have a CD with the music on it I want to put it in iTunes and then on my iPhone. Is this possible? I had it on my iTunes using my Macbook Pro 2009 account which has the slot, but this com
-
Hello I have problems with my pid in the sense that it displays only 2 values(min_and_max).i have tried different gains and yet it will not work properly.can someone help me please? the process I'm tring to control is an oven, and I use NEITHER 6024E
-
I recently bought a used computer on craigslist. It's a HP Pavilion a6700f. He came originally with Vista, but the previous owner installed Windows 7 32 on it. I want to put it back to factory settings, but I can't seem to do it without the recove