How do I know the column data type
Hello,
For example I have created table Test:
SQL> create table Test(
2 rollNo number(3),
3 Name varchar2(80));
Table created.Now I desc Test but its not showing the column data type
SQL> desc test
Name
ROLLNO
NAME Can I know that?
Best regards
What happens when you issue,
set linesize 2000
SQL>desc testAre you sure that you are not missing scrolling the bar in the bottom of the window?
SQL*Plus: Release 11.2.0.1.0 Production on Sat Nov 20 19:23:01 2010
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> create table testr(test number(3), rollno varchar2(10));
Table created.
SQL> desc testr
Name Null? Type
TEST NUMBER(3)
ROLLNO VARCHAR2(10)Aman....
Edited by: Aman.... on Nov 20, 2010 7:24 PM
Similar Messages
-
How to find the Column data type changes in table
Hi All,
I need to find out the column data type changes where made recently in table .
How do i check past changes in column data type. Any data dictionary are there to find out the data type changes in the column .
Thanks in advance..<FONT FACE="Arial" size=2 color="2D0000">
You have the answer on hand (user_arguments / all_arguments)!
SQL> desc user_arguments
Name Null? Typ
OBJECT_NAME VARCHAR2(30)
PACKAGE_NAME VARCHAR2(30)
OBJECT_ID NOT NULL NUMBER
OVERLOAD VARCHAR2(40)
ARGUMENT_NAME VARCHAR2(30)
POSITION NOT NULL NUMBER
SEQUENCE NOT NULL NUMBER
DATA_LEVEL NOT NULL NUMBER
DATA_TYPE VARCHAR2(30) --> Data Type
DEFAULT_VALUE LONG
DEFAULT_LENGTH NUMBER
IN_OUT VARCHAR2(9) -->Argument direction (IN,OUT,or IN/OUT)
DATA_LENGTH NUMBER
DATA_PRECISION NUMBER
DATA_SCALE NUMBER
RADIX NUMBER
CHARACTER_SET_NAME VARCHAR2(44)
TYPE_OWNER VARCHAR2(30)
TYPE_NAME VARCHAR2(30)
TYPE_SUBNAME VARCHAR2(30)
TYPE_LINK VARCHAR2(128)
PLS_TYPE VARCHAR2(30)
CHAR_LENGTH NUMBER
CHAR_USED VARCHAR2(1)
Look for Data_Type where IN_OUT say OUT. That will be the data type retruned by that function.
Edited :
or POSITION in argument list,or null for function return value
-SK
</FONT> -
How can I know the purchase date of my notebook?
Hello guys
I bought a Toshiba notebook from Extra Company @ Jeddah, Saudia Arabia
& I want to know how can I know the Purchase Date Of it because I missed the payment bill & when I register my notebook Toshiba web site it asks me about the Purchase Date.
Please help me
Thanks a lot
ByeDont think you can find out the date of purchase!
Where should know this without a payment bills or sales checks.
What you can do is to find out when the notebook was registered on the Toshiba page.
[Toshiba Warranty Lookup |http://computers2.toshiba.co.uk/toshiba/formsv3.nsf/WarrantyEntitlementLookup?OpenForm] -
How to Hide/show the columns data while doing Drill down or drill up
Hi ,
How to Hide/show the columns data while doing Drill down or drill up in webi report .
Does it possible BO 3.1 version ?
Please suggest me on this.
Thanks & Regards
VenkatWhile that is not there yet, you can make use of the show when empty yes/no in combination with alerters.
So I have an alerter applied to every cell of the table.
When a condition is true (say I drilled down) I just put = "" in every cell, emptying the table,
because its now empty and doesn't need to show, it wont.
For the detail table I use the opposite, so when you drilled down it becomes visible...
Hope this helps all that do not have 40 yet
Good luck,
Marianne -
How can i know the Column Position in a table
Dear all
How can i know the Column position in a table ..
For example :-
I have a table
Desc EMPLOYEES
Empid
Ename
Sal
I want to know the Empid is in 1st position , ename is in 2nd position and sal is in 3rd position .
is it possible ?Hi
SELECT * FROM ALL_TAB_COLUMNS WHERE
TABLE_NAME ='EMPLOYEES' AND owner=<OwNeR nAmE> ;) -
How do I know the Column number after shifting table columns?
I create a table with column name "a", "b", "c"
Then I shift those column around..
Is there a way Java can tell me the column number of heading "b"? (For example)
Thanks!As mentioned above you generally don't need to worry about columns being moved but, from the JTable API, this may be what you are looking for:
int convertColumnIndexToModel(int viewColumnIndex)
int convertColumnIndexToView(int modelColumnIndex) -
How to know the column name using the index name for a particular table
Hi All,
I have small query regarding, I have index name and table name so by using this how can I know the column name associated with that index of that particular table specific to Oracle9i.
Thanks
Sudheerselect *
from user_ind_columns -- or all_ind_columns
where table_name = UPPER('&table_name')
and index_name = UPPER('&index_name');
Regards
Arun
Gurgaon -
Cannot get the correct data type in Oracle JDBC
Dear ALL:
I used JDBC ResultSetMetaData to get the column data type for Oracle Database. I created a table including 2 columns AAA, which is NUMBER type, BBB which is FLOAT type.
However, I found a problem that either NUMBER or FLOAT data types are reported as NUMBER type in JDBC.
IN SQL 2000, it is okay. SMALLINT, INT, TINYINT, etc..can be reported correctly.
Can anybody tell me that what's wrong here? I will be very appreciated.hi,
i guess its a bug which is fixed with 10i.
Elango. -
How to use clob or blob data type in OWB
how to use clob or blob data type in OWB?
if OWB not surport these data type,how can i extract the large data type from data sourceThe same question was asked just two days ago No Data Found: ORA-22992
Nikolai Rochnik -
Hi, i am using Sybase IQ 16.0
I have created a table, when I want to change one of the data type for a column for example from char to varchar, the list box is grey color and not allow me to change.
Right click table > Properties > Columns > Data Type
I have granted all permission for dba, but still not able to edit. (please see the attached file)
Any help?
Thanks.Hi Nelson.
You can not change the datatype of an existing column.
The doc reference is here: Altering Tables
"After you create a column, you cannot modify the column data type. To change a data type, drop the column and recreate it with the correct data type."
If you already have data in the column, you can try this:
create the new column with a slightly different name
copy the data in to the new column
drop the original column
rename the new column to the old column's name.
--Kirby -
Store the value in BLOB column data type
Hi All,
I have a file of about 5MB. I want to store this in BLOB column data type of a table.
Can we compress this file to store and when we take uncompress the same...or how do we do it.
and what is the procedure to store this....
pls. help me
Thanks,
NareshHi skud
i juast want to store the agent code to variable.if i did get ur point...
Why don't u just use a simple assign statment for example...
DECLARE
V_VALUE NUMBER;
BEGIN
V_VALUE := LC354 ; -- IF it was a value as LC354 static i mean
-- or u could use any value
V_VALUE := :ur_form_item_name; --- if it was dynamic
END;That's it .
Hope this helps...
Regards,
Ammatu Allah. -
How to access the Custom Data type variable given in Expression edit control To and From LabVIEW
Hello, I would like to know how to access the custom data type variable given in the Espression Edit Control from LabVIEW and vice-versa
Say, the FileGlobals.Reference_Handle (Custom Data Type Variable) contains the
VISA I/O session (Which in turn contains VISA_DeviceName: String, Session: Number),
Channel1: Number and
Channel2: Number
I am expecting the user to give FileGlobals.Reference_Handle as the input at the ExpressionEdit Control in the edit screen of the VI Call.
I would like to know how to get the values of this custom data type to LabVIEW?
Say, if I have the Cluster in LabVIEW like VISA I/O session (Deive Name and Session Number), Channel1 and Channel2
how do i need to set this cluster to the Custom Data type variable in TestStand?
Thanks and Regards
PrakashHi,
TestStand to LabVIEW: i didnt understand what you r trying to achieve. But if you are using references, Use Property nodes and Invoke nodes to achieve what you want in LabVIEW.
LabVIEW to TestStand: check the image below: You need to click the button next to 'container'. I have used a cluster output in the VI.
Hope this helps
.......^___________________^
....../ '---_BOT ____________ ]
...../_==O;;;;;;;;_______.:/
Attachments:
1.JPG 187 KB -
Can i see the column DATA(BLOB type) in PM_OBJECTS of DCM schema
we installed DCM managed clustering .it is Database repository type.
i am trying to see the column DATA(BLOB type) in PM_OBJECTS of DCM schema .
I wrote a program in java to read blob data type and write it into a temporary file.
when i open temporary files all the data in junk format.
can i see the real data of thatcolumn.Is it possible?
first of all for what purpose DCM shema will be used?Hi,
There is no option to show the comments on the diagram.
We plan to add such feature in the next version.
Ivan -
How to know the Column name which contains some value?
Suppose if a table contains 30 columns, and I want to know the name of the Column that contains my search text(Value).
For Eg. I have a Table named Allowances contains 20 columns for referencing 20 types of allowances. The columns are named like Allw_1,Allw_2,...etc..I know the allowance name(Like "Incentive") and I want to know the Column name on which this allowance name presents.
Pls. help me.Change your DB model.
A Table with columns called allw_1, allw_2, ... begs to be normalized. -
How To Know The Column Name Of The Internal Table
HI ,
i have an internal table .
f1 f2 f 3 f4 f5
matnr mbrsh mtart meins minbe
i want to know the column name which depending on the value i.e . if it is matnr then f1 , if mbrsh it is f2 ..so on
Thanks.Hi ,
thanks for your replies . i am elaborating my query .
I have an internal table with 80 fields i.e.f1,f2,f3......f80 . In the first index i will be having the fieldnames
i.e.matnr , mbrsh , meins , mtart ..... . From second index onwards i will be having the corresponding data for the field name. i need to display a particular field in a table control . Here i will be knowing the fieldname. If i can get to know the column name i.e whether f1 or f2 or ... .i Can populate the data into the table control.
Wht i have done is taken a field symbol and used the following code.
read table i_upload index 1 assigning <lv_upload>.
here i will get the initial first record i.e
F1 MATNR
F2 MBRSH
F3 MTART
F4 WERKS
F5 LGORT
F6 VKORG
F7 VTWEG
F8 MAKTX
F9 MEINS
F10 MATKL
F11 BISMT
F12 BRGEW
F13 GEWEI
F14 NTGEW
F15 GROES
F16 KLART
F17 CLASS
F18 SPART
F19 VRKME
F20 UMREN
now i want to the field name .
Hope it is clear this time .
Thanks.
Maybe you are looking for
-
My apple trackpad seems to have a mind of its own, it will be fine then it will go wild and start moving all on its own, clicking and going from left to right in spastic motions, what do i do, is it a virus or dust or what?
-
NI-DAQmx VisualStud​io C++ 6 Single point analog output
Specs: NI-DAQmx 7, VisualStudio C++ 6.0, PCI-6722,8channel AO We have a very simple application: set a voltage (actually 6 channels) and keep it until we want it changed again, perform the change very quickly in response to an image capturing algori
-
Combine Files Dialog 8.1.6--drag and drop broken?
I just reinstalled Acrobat 8, and the Combine Files panel is "all whacky". If I drag one or more documents into the panel, they are added normally. But if I then add another batch of 1 or documents, the FIRST SET OF DOCUMENTS is added again. To be cl
-
I have a scenario where I need to reuse the variable in several packages without refreshing it. For example I have package 1, 2 and 3. I have defined a variable var_timestamp with latest value and declare this variable in package 3, I have generated
-
How can I get my accurate DOB on Your Account Page?
On the Your Account page the year DOB stops in 1942. Why? Aren't those of us who are older allowed to have a Your Account page?