Oracle Database11g tutorials 14 : How to CREATE TABLE using sql developer and command prompt
Key Takeaways
Creates a table using SQL Developer and command prompt in Oracle Database11g
Full Transcript
what's up internet this is Manish from rebellionrider.com today in this Oracle database tutorial we will see how to create a table I'm doing this video on popular demand so sorry for interrupting SQL function series we will be continuing with SQL function series after these SQL create table videos okay let's start with a brief intro about SQL table and SQL create table if we have to define a table in Layman language then we can say that tables are just a collection of rows and columns but in rdbms tables are database objects which helps in organizing data into rows and columns we can also say that SQL tables are kind of data structure which are used by database for efficient storage of data to create a table in our database we use SQL create table command SQL create table is a type of data definition language also known as ddl to create a table in your schema you will require create table system privilege in our future video we will see what are system and object Privileges and how to grant them to a user today for this video we will be using sample schema HR which already has all the necessary privileges okay let's see the syntax create table is an oracle reserved word or say an oracle keyword whereas table name and column name are user defined so you can specify whatever name you want to your table and its columns every column should separate from each other using commas Oracle has maximum limit of 1,000 columns in a table and no limits on rows there are three different ways of creating a table in Oracle database let's check them out first creating a table using command line interface in Oracle database for demonstrating how to create a table in Oracle database using CLI command line interface I will be using command prompt if you are working on a Linux machine then you can use terminal steps are same in both okay right now I am on my command prompt first of all we have to set the S ID of our database over which we want to work I have only one database with Sid orcl so now connect to the schema in which you want to create a table I will create a table in HR sample schema so I'm going to connect it with HR so now we are in our SQL prom let's apply our create table syntax I am creating a table by the name of table one this table has two columns T1 ID and first name you can add as many column as you want create table is the keyword and our command also table one is a user defined name for the table you can give whatever name you want start the parenthesis now give your First Column name I will give T1 ID along with the data type I will specify number sorry and the size which is optional if you want to give you can specify this size if you do not want to give then it's okay then comma don't forget to put this comma Now second column name my second column will be for name this is the second and the last column for this table where 2 and this time I will give 15 as it's the last column for my table so it's not mandatory to put the comma close the parenthesis and Terminator and hit enter that's how we create table using command prompt you can check your table structure by describe command for that just write DC and your table name like this DC C sorry and the table name which is table one sorry table one hit enter as you can see we created a table with two column T1 ID and first name here we have T1 ID and first name with the data type number and where 2 and the size three and 15 another way of creating a table is by using graphic user interface GUI in Oracle database to demonstrate how to create data table using GUI we will use SQL Developer let's open our SQL Developer I am connected to HR schema if you do not know how to create a connection to database using SQL Developer please watch my Oracle database tutorial 4 that explain database connectivity using SQL Developer and command prompt link for this video is in the description blow so let's create a table creating a table using SQL Developer is very easy we do not have to fire a single cury here let's start first of all right click on the connection and choose schema browser this will open a separate schema browser pen or you can expand your connection by clicking this plus button and then right click on table and choose new table however I prefer working with the schema browser so let's skip to schema browser pen here from the first drop- down list you can choose connection name and in the second drop- down list you can choose what database object you want to work with we want to create a table thus I will choose table and click this [Music] Arrow here and choose option for new table okay we are in a create table visard first of all give a unique name to your table and add some columns as well for this click this green plus button now give it a name I will give it T2 ID and specify data type I'll go with number and you can give size here I'll give three you can check this n column if in case you want to make this a mandatory column you can also specify default value and constant if you want to make this column a primary key you can click here in my future video I will show you what are these constants and different way of applying them on a column in a table for this video we will concentrate on create table only so when you are done with all these column let me add one more column and this time I will give a name T2 name where care okay and this time I will give it a size 30 okay just okay so when you are done with all your column click [Music] okay that's your table you can double click on your table name here and can see it's a structure this is our table that's it in my next video I will show you a third way of creating table using Enterprise Manager watch out for my soon to be uploaded next video on how to create table using Enterprise Manager you can visit my website ww. rebellionrider.com for the in-depth knowledge of SQL create table also you can download all the resources used in this video such as presentation and the script from here for that just scroll down a little bit and here are the links that's it for today thanks for watching this is Manish from Rebellion rider.com
Original Description
Oracle Database11g tutorials 14
How to Create table using command prompt and Create table using sql developer
Blog Link http://bit.ly/1TkY4Oe
Time Line
0:25 Introduction of Tables in Database
1:03 What is Create Table (Introduction of create table)
1:30 Syntax of Create Table
2:08 How to create table using Command Prompt
4:55 How to create table using SQL Developer
Links for
Oracle Database tutorials 4: database connectivity using SQL developer and command prompt
http://youtu.be/wSqoXRlXDUU
You can have indepth knowledge about SQL create table here
http://www.rebellionrider.com/sql-create-table.html
Tool used in this tutorial is command prompt.
This tutorial series is part of SQL expert exam certification training. if you are preparing for SQL certification you can use my tutorials. This SQL Tutorial is a part of free training.
Copy Cloud referral link || Use this link to join copy cloud and get 20GB of free storage
https://copy.com?r=j7eYO7
Contacts
E-Mail
RebellionRiderYT@gmail.com
Twitter
https://twitter.com/rebellionrider
Instagram
http://instagram.com/rebellionrider
Facebook.
https://www.facebook.com/imthebhardwaj
Linkedin.
http://in.linkedin.com/in/mannbhardwaj/
Thanks for linking, commenting, sharing and watching more of our videos
This is Manish from RebellionRider.com
Today in this oracle database tutorial we will see How to CREATE A TABLE.
if we have to define a table in layman language then we can say that Tables are just a collection of Rows and Columns but
In RDBMS tables are database objects which help in organizing data into ROWS and COLUMNS.
We can also say that
SQL tables are kind of data structure which are used by database for efficient storage of data.
To create a table in our database we use SQL CREATE TABLE command.
SQL CREATE TABLE is a type of DATA DEFINITION LANGUAGE also known as DDL.
To Create a table in your schema you will require CREATE TABLE system privilege.
In our future videos we will see what are system and ob
Playlist
Uploads from Manish Sharma · Manish Sharma · 17 of 60
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
▶
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Oracle Database tutorials 1: How to install Oracle Database 11g on windows 7
Manish Sharma
Oracle Database tutorials 2:How To install SQL Developer on windows 7
Manish Sharma
Oracle Database tutorials 3:How to enable Line numbers in SQL Developer.
Manish Sharma
Oracle Database tutorials 4: database connectivity using SQL developer and command prompt
Manish Sharma
Oracle Database tutorials 5: how to Fetch Data using SELECT - SQL statement by Manish Sharma
Manish Sharma
Oracle Database11g tutorials 6 | | How to use Concatenation operator, character String
Manish Sharma
Oracle Database11g tutorials 7 | |SQL DISTINCT keyword || SQL tutorials
Manish Sharma
Canon EOS 600D 2 lens kit/Canon rebell EOS T3i 2 lens kit Unboxing
Manish Sharma
First look: ORACLE CERTIFIED ASSOCIATE (OCA) CERTIFICATE - ORACLE DATABASE ADMINISTRATOR
Manish Sharma
Oracle Database11g tutorials 8 || SQL DISTINCT with multiple columns |SQL Distinct with Two columns
Manish Sharma
Oracle Database11g tutorials 9 || What is archive log mode and how to enable archive log mode
Manish Sharma
Oracle Database11g tutorials 10 || SQL Single Row Function (SQL Functions )
Manish Sharma
Oracle Database11g tutorials 11: SQL case manipulation function in Oracle Database
Manish Sharma
how to add channel trailer and section on your youtube channel 2014
Manish Sharma
Oracle Database11g tutorials 12 || SQL Concat Function - SQL character manipulation function
Manish Sharma
Oracle Database11g tutorials 13 || SQL substr function / SQL substring function
Manish Sharma
Oracle Database11g tutorials 14 : How to CREATE TABLE using sql developer and command prompt
Manish Sharma
SQL tutorials 15 || How To CREATE TABLE using enterprise manager 11g
Manish Sharma
Oracle Database11g tutorials 16: How to uninstall oracle 11g from windows 7 64 bit
Manish Sharma
ORACLE CERTIFIED PROFESSIONAL(OCP) CERTIFICATE First look - ORACLE DATABASE ADMINISTRATOR
Manish Sharma
Plantronics audio 655 USB headset with Mic Unboxing and Review and Plantronics audio 655 Mic test
Manish Sharma
SQL tutorials 17: SQL Primary Key constraint, Drop primary Key
Manish Sharma
SQL tutorials 18: SQL Foreign Key Constraint By Manish Sharma
Manish Sharma
SQL tutorial 19: ON DELETE SET NULL clause of Foreign Key By Manish Sharma (RebellionRider)
Manish Sharma
SQL tutorials 20: On Delete Cascade Foreign Key By Manish Sharma (RebellionRider)
Manish Sharma
SQL tutorial 21: How To Rename Table in SQL using ALTER TABLE statement By Manish Sharma
Manish Sharma
SQL tutorial 22: How to Add / Delete column from an existing table using alter table
Manish Sharma
SQL tutorial 23: Rename and Modify Column Using Alter Table By Manish Sharma (RebellionRider)
Manish Sharma
SQL tutorial 24 :SQLJoins- Natural Join With ON and USING clause By Manish/Rebellionrider
Manish Sharma
Oracle Database11g tutorials 25: How to install Oracle Database 11g Express Edition R2 on Windows 7
Manish Sharma
SQL tutorial 26: Introduction to SQL Joins in Oracle Database
Manish Sharma
Vidcon 2014 YouTube Fan Funding: How to enable fan funding on YouTube Channel
Manish Sharma
SQL tutorial 27: Right Outer Join in SQL by Manish Sharma for RebellionRider
Manish Sharma
SQL tutorial 28: Left Outer Join By Manish Sharma / RebellionRider
Manish Sharma
SQL tutorial 29: Full Outer Join with example By Manish Sharma/ RebellionRider
Manish Sharma
SQL tutorial 30: Inner Join In SQL by Manish Sharma/RebellionRider
Manish Sharma
SQL tutorial 31 : SQL Cross Join In Oracle Database By Manish Sharma from RebellionRider
Manish Sharma
SQL tutorial 32: How To Insert Data into a Table Using SQL Developer
Manish Sharma
SQL tutorial 33:How To Insert Data into a Table Using SQL INSERT INTO dml statement
Manish Sharma
SQL tutorial 34: How to copy /Insert data into a table from another table using INSERT INTO SELECT
Manish Sharma
SQL tutorial 35: DELETE and TRUNCATE how to delete data from a table
Manish Sharma
SQL tutorial 36: how to create database using database configuration assistant DBCA
Manish Sharma
SQL tutorial 37: How to create NEW USER account using Create User statement in Oracle database
Manish Sharma
SQL tutorial 38: How to create user using SQL Developer in Oracle database
Manish Sharma
SQL tutorial 39: How to create user in oracle using Enterprise Manager
Manish Sharma
SQL tutorial 40: DBA Trick, How to drop a user when it is connected to the database
Manish Sharma
Motorola Moto G 2nd Generation / G2 Unboxing and Review
Manish Sharma
SQL tutorial 41: How to UNLOCK USER in oracle Database
Manish Sharma
SQL tutorial 42: How to Unlock user using SQL Developer By Manish Sharma RebellionRider
Manish Sharma
SQL tutorial 43: How to create an EXTERNAL USER in oracle database By Manish Sharma RebellionRider
Manish Sharma
SQL tutorial 44: How to import data from Microsoft Excel to Oracle Database using SQL Developer
Manish Sharma
SQL tutorial 45: Introduction to user Privileges in Oracle Database By Manish Sharma RebellionRider
Manish Sharma
SQL tutorial 46: What are System Privileges & How To Grant them using Data Control Language
Manish Sharma
SQL tutorial 47: How to Grant Object Privileges With Grant Option in Oracle Database
Manish Sharma
SQL tutorial 48: How to create Roles in Oracle Database
Manish Sharma
SQL tutorial 49: CASE - Simple Case Expression in Oracle Database (1/2)
Manish Sharma
SQL tutorial 50: CASE - Searched Case Expression In Oracle (2/2)
Manish Sharma
SQL tutorial 51: DECODE function in Oracle Database By Manish Sharma (RebellionRider)
Manish Sharma
Oracle Database Tutorial 52 : Data Pump expdp - How to Export full database using expdp
Manish Sharma
Oracle Database Tutorial 53 : Data pump expdp - How to Export tablespace in Oracle Database
Manish Sharma
More on: SQL Analytics
View skill →Related Reads
📰
📰
📰
📰
Governed reports with Amazon Quick Desktop and Amazon FSx for NetApp ONTAP
AWS Machine Learning
Expected Value Is a Function, Not a Prediction
Dev.to · E. Mitev
Building a food delivery pricing monitor that does not lie to you
Dev.to · Anakin
Building a Data Trust Score Engine on Google Cloud with BigQuery, Data Catalog & Vertex AI
Dev.to · Shuvojit Kar
Chapters (5)
0:25
Introduction of Tables in Database
1:03
What is Create Table (Introduction of create table)
1:30
Syntax of Create Table
2:08
How to create table using Command Prompt
4:55
How to create table using SQL Developer
🎓
Tutor Explanation
DeepCamp AI