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

Concept explainers

bartleby

Videos

Textbook Question
100%
Book Icon
Chapter 3, Problem 5MC

Which of the following is true?

  1. a. If you truncate a table, you can’t add new data to the table.
  2. b. If you change the default value of an existing column, all existing rows containing a NULL value in the same column are set to the new DEFAULT value.
  3. c. If you delete a column from a table, you can’t add a column to the table with the same name as the previously deleted column.
  4. d. If you add a column to an existing table, it’s always added as the last column of the table.
Blurred answer
Students have asked these similar questions
Which of the following is true? (refer to the tables in the JustLee Books database)a. If you truncate a table, you can’t add new data to the table.b. If you change the default value of an existing column, all existing rows containing a NULL value in the same column are set to the new DEFAULT value.c. If you delete a column from a table, you can’t add a column to the table with the same name as the previously deleted column.d. If you add a column to an existing table, it’s always added as the last column of the table.
How do you add a column to an existing table in MySQL?   a. MODIFY TABLE table_name ADD COLUMN new_column CHAR(3);     b. MODIFY TABLE table_name ADD new_column CHAR(3);     c. ALTER TABLE table_name ADD new_column CHAR(3);     d. ALTER TABLE table_name ADD COLUMN new_column CHAR(3);
Q-1: Fill in the three blanks required to create the table only if it doesn't exist already cur.execute(" CREATE TABLE [_]L (name TEXT, retrieved INTEGER, friends INTEGER) 1Twitter

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
Oracle 12c: SQL
Computer Science
ISBN:9781305251038
Author:Joan Casteel
Publisher:Cengage Learning
dml in sql with examples; Author: Education 4u;https://www.youtube.com/watch?v=WvOseanUdk4;License: Standard YouTube License, CC-BY