From the course: Oracle Database 12c: Basic SQL

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Describe the structure of a table

Describe the structure of a table - Oracle Database Tutorial

From the course: Oracle Database 12c: Basic SQL

Start my 1-month free trial

Describe the structure of a table

- [Instructor] So what happens when you want to run a SQL query on a database table, but you are uncertain about the database table structure? In order to write your SQL query, you first have to know which columns exist in your table. What are their data types? Are there character columns, string columns or numeric columns, or maybe date columns? Luckily for us, we can view the structure of the table directly, both using a SQL command, and also using Oracle SQL Developer. The simplest way, using the Oracle SQL Developer UI, for you to see the structure of a table is to expand the table's folder under the left-hand connections pane directly under your database connection. Here you will see a list of all tables that exist in the current schema. Highlighting each one those tables, such as the employees table, will show you a description of all of the columns that exist in this table, as well as their data types. So for example, we can see that the employees table has an employee ID…

Contents