Oracle Database11g tutorials 14 : How to CREATE TABLE using sql developer and command prompt

Поделиться
HTML-код
  • Опубликовано: 9 сен 2024
  • Oracle Database11g tutorials 14
    How to Create table using command prompt and Create table using sql developer
    Blog Link 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
    • Oracle Database tutori...
    You can have indepth knowledge about SQL create table here
    www.rebellionri...
    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
    copy.com?r=j7eYO7
    Contacts
    E-Mail
    RebellionRiderYT@gmail.com
    Twitter
    / rebellionrider
    Instagram
    / rebellionrider
    Facebook.
    / imthebhardwaj
    Linkedin.
    / 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 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.
    Ohk Let's see the syntax.
    CREATE TABLE table name
    (
    column name1 Data-Type(size),
    column name2 Data-Type(size),
    .....
    );
    CREATE TABLE is an oracle reserved word or say an Oracle key word whereas
    There are 3 different ways of creating a table in Oracle database.
    Creating a table using Command Line Interface (CLI) in Oracle database
    For demonstrating how to create table in oracle database using CLI, I'll be using Command prompt.
    Thats how we create table using command prompt.
    you can check your table structure by DESCRIBE command
    for that just write
    DESC and your table name.
    Like this
    Another way of creating a table is by using Graphic user interface (GUI) in Oracle database
    To demonstrate how to create table using GUI we will use SQL developer.
    Lets 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 explains database connectivity using SQL developer and command prompt. Link for this video is in the description below.
    So lets create a table.
    Creating a table using SQL developer is very easy we do not have to fire any query here.
    Let's start
    First of all right click on your connection in which you want to create a table and choose schema browser.
    This will open a separate schema browser pane
    or you can expend your connection by clicking this + sign and then right click on table and choose New Table.
    However I prefer working with schema browser so let's skip to schema browser pane
    here from the first drop-down list you can choose connection name
    and in the second drop down list you can choose what database objects you want to work with
    we want to create a table thus I'll choose table and then click this arrow here and choose option for new table
    Ok we have created a table wizard
    first of all give a unique name to your table
    and add some column as well. For this, click the green plus button. Now we already have a column so give it some name.
    Also choose a datatype from the list and specify any size
    you can check this not null column if in case you want to make this a mandatory column
    you can also specify default value and constraint
    If you want to make this column a primary key you can click here
    In my future video i'll show you what are these constraints and different ways 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 your columns click ok
    Thats your table
    You can double click on your table here and can see its structure.
    Thats it

Комментарии • 59

  • @josebarbosagarcia550
    @josebarbosagarcia550 4 года назад +4

    "okay, now lets gives a unique name to our table"
    types table 2 haha

  • @ahsanulhaque4075
    @ahsanulhaque4075 10 лет назад +1

    thanks MANISH BHAI.........................please quickly continue next

    • @Rebellionrider
      @Rebellionrider  10 лет назад

      Thanks for the appreciation. I'll be uploading next video very soon.
      And yes don't forget to like, comment and Share :-)

    • @ahsanulhaque4075
      @ahsanulhaque4075 10 лет назад

      INSHALLAH................

  • @rumelhowlader
    @rumelhowlader 2 года назад

    Awesome, your tutorials are really good..Simple,short and informative

  • @gimnathperera5556
    @gimnathperera5556 3 года назад +1

    Very Helpful!

  • @sanjujoseph8641
    @sanjujoseph8641 3 года назад

    Awesome, your tutorials are really good..Simple,short and informative.. 👍

  • @bibhu324
    @bibhu324 5 лет назад

    Thank u sir for this helping video...

  • @fullStackInKannada
    @fullStackInKannada 3 года назад

    Thank you :)

  • @arabindapratihar3953
    @arabindapratihar3953 9 лет назад +1

    please try to upload the function series soon....you r great ......

  • @tirthadeepdas3636
    @tirthadeepdas3636 4 года назад

    Love you bro

  • @princejaiswal823
    @princejaiswal823 4 года назад +1

    Well explained, Sir

  • @haider6030
    @haider6030 10 лет назад +2

    Awesome..!!!!

  • @yvnreddyy9165
    @yvnreddyy9165 7 лет назад

    very useful
    thank you

  • @tivideosAZ
    @tivideosAZ 7 лет назад

    Manish,
    This is good stuff..It is great..Thanks for your effort! Helped me learn this fast!

  • @jyothsnagaraga2633
    @jyothsnagaraga2633 3 года назад

    Can you help me with this how to develop a mechanism which ensures daily details required for generate report and gets stored in the table

  • @pervezansari9533
    @pervezansari9533 8 лет назад

    You tutorials are really awesome, you rock buddy:-)

  • @pratiksharma172000
    @pratiksharma172000 7 лет назад

    good work.

  • @pawanofficialmail1688
    @pawanofficialmail1688 6 лет назад

    Thanks Sir

  • @marbab88
    @marbab88 7 лет назад

    thank you boss

  • @vasanthakumare2791
    @vasanthakumare2791 3 года назад +1

    Can we create our own database in Oracle?

  • @anshumanjena534
    @anshumanjena534 3 года назад

    hey manish... i've a doubt that what is the query to show the structure & content of ALL THE TABLES created?

  • @supragya8055
    @supragya8055 6 лет назад

    This should have been first video

  • @nandakishore2098
    @nandakishore2098 5 лет назад

    Hi Manish,
    After creating connection, In the drop down I am not able to see the tables and views in that particular connection. I have tried to create multiple connections but same problem. Please help me out.

  • @ruchirsohani5856
    @ruchirsohani5856 7 лет назад

    hiii manish i am searching for "HOW TO CREATE DATABASE IN ORACLE 11G WITH SQL DEVELOPER ANS COMMAND PROMPT",IF YOU CAN UPLOAD ANY VIDEO IN COMING 2 DAYS. I WILL BE VERY THANK FULL TO YOU.
    I NEED THIS VERY URGENTLY.............PLZZ

  • @earnfree4glte577
    @earnfree4glte577 8 лет назад

    How do you add a new name where HR is? For example I am trying to name my data base MEC, before I start my table.Also, am I able to create the table in GUI and copy it to the command prompt? My school is asking for me to create a database on their connection to MySQL but they are not set up for me to use the GUI and I want to use the GUI that's why I asked is there a way to copy from the GUI to the command prompt of my school?

  • @ayoola4951
    @ayoola4951 9 лет назад

    i tried creating a table using subqueries from two tables but i ended up creating a table with catesian data ( an employee can have upto 20 rows in this table) so is there a way to create this tablesfrom two different table without it giving me a cartesian product?

  • @SoumyaBiswas37
    @SoumyaBiswas37 8 лет назад

    hi manish.. i have downloaded oracle 11 g database. after installation there are two options: 1>start database, 2>sql command line.. when i am trying to create a database, it is showing message "Not connected".. Please suggest me about the configuration and connection to the database.

  • @vijaysimhakulkarni8466
    @vijaysimhakulkarni8466 7 лет назад

    Hi Manish how to display the names of employees who are working in a company for the past few years in Oracle sql developer

  • @tmitchable
    @tmitchable 10 лет назад

    i have question, why can u use select to retrieve the dbase table instead u use desc ?

  • @DeepakGupta-tr5pe
    @DeepakGupta-tr5pe 4 года назад

    how to create table for a checkbox field

  • @syedrizu1442
    @syedrizu1442 8 лет назад

    hi please help me to create a trigger that should not insert any dml after 6 pm and inform the user that dml operations cannot be done after 6 o clock.. can any one help me to create this?

  • @kamleshkhokare5134
    @kamleshkhokare5134 3 года назад

    When i traying to creating table I hav got error like this (ORA:00922 missing or invalid option) how to solve it?

  • @chethanprabhu4475
    @chethanprabhu4475 8 лет назад

    hello im using oracle 9i....are the syntax and functions same as oracle 11g

  • @videowithpradip3939
    @videowithpradip3939 2 года назад

    where is remain sql function video

  • @H0LDENSUX
    @H0LDENSUX 8 лет назад

    Where do we go an get the schema HR? I can't find it as part of Oracle SQL Developer 11g.

  • @hudaitaly
    @hudaitaly 9 лет назад +2

    Manish Rulezz...! :)

  • @hiroshiperera7107
    @hiroshiperera7107 9 лет назад +1

    Hi Maish,
    In Oracle SQL Developer you have used HR to create the table. But what happens if I select SYSTEM and does the same. Is it too ok. What are the difference between these different roles?

    • @Rebellionrider
      @Rebellionrider  9 лет назад

      Hiroshi Perera Greate Question, For making a new connection using sys user I would suggest you to check out this article bit.ly/how-to-create-new-connection-in-sql-developer on my website where I explained the correct step by step process of making a new SQL Developer connection using SYS user. Hope you will find it useful, if so then please share it with your friends also don;t forget to LIKE, SHARE & SUBSCRIBE thanks

    • @RafiqulIslam-gq2vj
      @RafiqulIslam-gq2vj 7 лет назад

      ORA-01017:invalid username/password,logon denied showing.
      I don't use LAN,so kindly suggest me how to create sys user connection.
      Btw u r really doing well for we learner,u have a clear voice and good presentation skill.good luck.

  • @harithachennareddy1004
    @harithachennareddy1004 5 лет назад

    Hi manish sir, i am getting an error in sql developer like insufficient privileges ,WHILE CREATING A TABLE
    PLEASE HELP ME SIR

  • @phonglee9661
    @phonglee9661 7 лет назад

    Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection?

  • @mallipamula23
    @mallipamula23 9 лет назад

    hi manish
    how to insert data table using sql developer

  • @marrisreejithreddy4998
    @marrisreejithreddy4998 8 лет назад

    sir, where are the rest sql function videos? @manish

  • @pavanigorlagunta4198
    @pavanigorlagunta4198 4 года назад

    hii i am getting error when creating table how to solve that problem

  • @vickypatekar9532
    @vickypatekar9532 5 лет назад

    Hi Manish Sir, what is Username and Password hr/hr which Username and Password it is?

  • @prathmeshsawant645
    @prathmeshsawant645 6 лет назад

    Hi Manish,
    I am getting error while installing oracle, will you help me

  • @divyanamdev886
    @divyanamdev886 7 лет назад

    what is CLOB and BLOB ?

  • @Dheerajsonali
    @Dheerajsonali 8 лет назад

    When connecting to Oracle I got this ORA-00020 error
    ERROR:
    ORA-00020: maximum number of processes (150) exceeded

  • @hoangtruong7166
    @hoangtruong7166 4 года назад

    ORA-00922: missing or invalid option

  • @8694vicky
    @8694vicky 6 лет назад +1

    Hi manish sir,Thank you for all those videos i have learn very much.
    by creating table in cmd with same syntax i am getting error:-
    CODE>>
    CREATE TABLE table1<
    t_id NUMBER,
    f_name VARCHAR2
    >;
    eRROR>>
    ERROR AT LINE 1:
    ORA-00922: MISSING OR INVALID OPTION
    PLEASE HELP ME TO SOLVE THIS

    • @Rebellionrider
      @Rebellionrider  6 лет назад +1

      Hey Avichal.
      first of all, you are doing a great job. The code is perfect except the brackets with DDL statements we use parenthesis, not the angled brackets which you have used. So try replacing < > from ( ). Like this
      CREATE TABLE table1(
      t_id NUMBER(5),
      f_name VARCHAR2(10)
      );
      Hope this will solve your problem. if not then shoot me a message on my facebook
      facebook.com/TheRebellionRider/
      Thanks and have a great day.

  • @mmt92
    @mmt92 9 лет назад +1

    Hi Manish,
    Whenever I install oracle, and developer I have following problem after certain time.
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    ERROR:
    ORA-12560: TNS:protocol adapter error
    Enter user-name: hr
    Enter password:
    ERROR:
    ORA-12560: TNS:protocol adapter error
    Enter user-name:
    and sometimes ORA-01031 trouble for HR user. Could you help me with this?

    • @Rebellionrider
      @Rebellionrider  9 лет назад

      mmt2k9 Try this
      Open your command prompt with administrative privileges and write " net start OracleServiceORCL " and try connecting again.
      Plus you can also check other service of your oracle database and start them if not running. Read this bit.ly/why-windows-startup-get-slow-on-installing-oracle blog may be it will help you.

    • @mmt92
      @mmt92 9 лет назад

      Manish Sharma
      Thanks Manish, yesterday I installed Oracle and today when I tried to run Developer to connect with using HR I got "Status: Failure -Test Failed: ORA-01031:Insufficient privileges"
      This happened third time.

    • @H0LDENSUX
      @H0LDENSUX 8 лет назад

      Yeah I'm having that problem too. I wish the lecture was more basic and avoided having to troubleshoot the problem.