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.
Creating a simple table - Oracle Database Tutorial
From the course: Oracle Database 12c: Basic SQL
Creating a simple table
- [Instructor] Inserting data into tables residing in your Oracle database is very easy and accomplished using the insert SQL command. When you insert data to a database table, you essentially add new rows to the table. So let's see an example in action. We will start by creating a table which we will use to insert new records into. So, in order to create a new table in the database, I'll type create table, specify the table name, for example, test_table1, and then, inside brackets, I'll specify the different column names and column data types for this table. So, for example, I can type col1 as the column name of the varchar2 data type, and I also can specify a length so, for example, 100. This means that col1, the first column in my table, is of varchar2 data type, and can store up to 100 characters. Adding another column can easily be done by typing comma and a name for my second column, for example, col2. This time, it's of the number data type, and I can also specify a length so…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
Introduction to DML and DDL commands2m 7s
-
(Locked)
Creating a simple table2m 1s
-
(Locked)
Inserting a new row to a table3m 15s
-
(Locked)
COMMIT and ROLLBACK2m 23s
-
(Locked)
Introduction to transactions3m 43s
-
(Locked)
Deleting rows for a table3m 23s
-
(Locked)
Updating values2m 40s
-
(Locked)
Multiple-statement transactions2m 41s
-
(Locked)
Truncating all data from a table2m 29s
-
(Locked)
Adding and dropping columns from a table3m 4s
-
-
-
-