Oracle 12c: SQL
Oracle 12c: SQL
3rd Edition
ISBN: 9781305251038
Author: Joan Casteel
Publisher: Cengage Learning
bartleby

Concept explainers

Expert Solution & Answer
100%
Book Icon
Chapter 3, Problem 2RQ

Explanation of Solution

Datatypes supported by Oracle 12c:

  • While creating a table in the database, each and every column of the table will be having its own data type and the user can select the data type according to his or her requirements.
  • The datatypes supported by Oracle 12c include:
    • CHAR
    • DATE
    • VARCHAR2
    • NUMBER

CHAR:

  • This data type is used to store the character strings of fixed length.
  • The size will be specified in brackets.
  • The maximum length of the character will be 255.
  • Even blank space is counted as a character.
  • For example, create a table named p, which includes a char column (x). The length of each column in 10 bytes.

Create Table p{x Char(10)};

VARCHAR2(n):

  • This data type is used to store alphabetical and numeric data length variables.
  • It is more flexible than Char data type, with its maximum capacity of 4000 characters.
  • Here, n represents the maximum length of the column.
  • For example, create a table named p, which includes a char column (x)...

Blurred answer
Students have asked these similar questions
"Mpho is very excited about the new information system to be built for his spaza shop. In this section, you need to make Mpho understand database concepts and how they will benefit his spaza shop." Draw sample tables that would be used in Mpho's information system. Provide the following for the sample database: Table names (Three tables required). Table fields (at least four fields per table). Specify the primary keys for each table. Specify foreign keys wherever applicable. Populate the tables with at least two records.
Explain the difference between MySQL and Oracle ?
9. Delete the CUSTOMERREP role from the Oracle 12c database.

Chapter 3 Solutions

Oracle 12c: SQL

Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
  • Text book image
    Oracle 12c: SQL
    Computer Science
    ISBN:9781305251038
    Author:Joan Casteel
    Publisher:Cengage Learning
    Text book image
    A Guide to SQL
    Computer Science
    ISBN:9781111527273
    Author:Philip J. Pratt
    Publisher:Course Technology Ptr
Text book image
Oracle 12c: SQL
Computer Science
ISBN:9781305251038
Author:Joan Casteel
Publisher:Cengage Learning
Text book image
A Guide to SQL
Computer Science
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Course Technology Ptr