3 Ways to Check Column Data Type in Oracle (2024)

Here are three ways to get information about a table’s columns in Oracle, including their data types.

The DESCRIBE Command

The DESCRIBE command lists the column definitions of a table or view.

The syntax goes like this:

DESCRIBE [CATALOG] [ schema.] table [@ dblink]

Here’s an example:

DESCRIBE HR.COUNTRIES;

That gets information about the COUNTRIES table, owned by HR.

We can also shorten DESCRIBE to DESC, so that it looks like this:

DESC HR.COUNTRIES;

The ALL_TAB_COLUMNS View

Another way to get a column’s data type is to query the ALL_TAB_COLUMNS view:

SELECT COLUMN_NAME, DATA_TYPE, DATA_LENGTH, DATA_PRECISION, DATA_SCALEFROM ALL_TAB_COLUMNSWHERE OWNER = 'HR'AND TABLE_NAME = 'COUNTRIES';

This view describes the columns of the tables, views, and clusters accessible to the current user.

Related views:

  • DBA_TAB_COLUMNSdescribes the columns of all tables, views, and clusters in the database.
  • USER_TAB_COLUMNSdescribes the columns of the tables, views, and clusters owned by the current user. This view does not display theOWNERcolumn.

The ALL_TAB_COLS View

Another way to do it is with the ALL_TAB_COLS view:

SELECT COLUMN_NAME, DATA_TYPE, DATA_LENGTH, DATA_PRECISION, DATA_SCALEFROM ALL_TAB_COLSWHERE OWNER = 'HR'AND TABLE_NAME = 'COUNTRIES';

This view is similar to ALL_TAB_COLUMNSexcept that system-generated hidden columns are not filtered out.

Related views:

  • DBA_TAB_COLSdescribes the columns of all tables, views, and clusters in the database.
  • USER_TAB_COLSdescribes the columns of the tables, views, and clusters owned by the current user. This view does not display theOWNERcolumn.
3 Ways to Check Column Data Type in Oracle (2024)
Top Articles
Setting Up a User-Managed SSL Certificate (SSL Starter / SSL Starter Wildcard) - IONOS Help
Dividend.com
Flixtor The Meg
Hertz Car Rental Partnership | Uber
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Mawal Gameroom Download
Volstate Portal
Monticello Culver's Flavor Of The Day
Declan Mining Co Coupon
Tcu Jaggaer
Sports Clips Plant City
Chic Lash Boutique Highland Village
What Happened To Anna Citron Lansky
Bx11
Obsidian Guard's Cutlass
[Cheryll Glotfelty, Harold Fromm] The Ecocriticism(z-lib.org)
Allentown Craigslist Heavy Equipment
The Largest Banks - ​​How to Transfer Money With Only Card Number and CVV (2024)
Ups Drop Off Newton Ks
Aol News Weather Entertainment Local Lifestyle
What Are The Symptoms Of A Bad Solenoid Pack E4od?
Ontdek Pearson support voor digitaal testen en scoren
Elite Dangerous How To Scan Nav Beacon
Rek Funerals
Craigslist Sf Garage Sales
Devotion Showtimes Near The Grand 16 - Pier Park
How to Use Craigslist (with Pictures) - wikiHow
Nacogdoches, Texas: Step Back in Time in Texas' Oldest Town
Spy School Secrets - Canada's History
Gr86 Forums
Teenbeautyfitness
In Branch Chase Atm Near Me
Hair Love Salon Bradley Beach
Google Jobs Denver
The Mad Merchant Wow
To Give A Guarantee Promise Figgerits
Sams La Habra Gas Price
Craigslist List Albuquerque: Your Ultimate Guide to Buying, Selling, and Finding Everything - First Republic Craigslist
Frcp 47
Ramsey County Recordease
Jack In The Box Menu 2022
Homeloanserv Account Login
How I Passed the AZ-900 Microsoft Azure Fundamentals Exam
8776725837
Wpne Tv Schedule
Graduation Requirements
Underground Weather Tropical
Tommy Gold Lpsg
The Goshen News Obituary
What Is The Gcf Of 44J5K4 And 121J2K6
Jesus Calling Oct 6
Latest Posts
Article information

Author: Ouida Strosin DO

Last Updated:

Views: 6573

Rating: 4.6 / 5 (56 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Ouida Strosin DO

Birthday: 1995-04-27

Address: Suite 927 930 Kilback Radial, Candidaville, TN 87795

Phone: +8561498978366

Job: Legacy Manufacturing Specialist

Hobby: Singing, Mountain biking, Water sports, Water sports, Taxidermy, Polo, Pet

Introduction: My name is Ouida Strosin DO, I am a precious, combative, spotless, modern, spotless, beautiful, precious person who loves writing and wants to share my knowledge and understanding with you.