SQL Command Line Access
3 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

SQL Basic Commands: COMMAND DESCRIPTION CREATE Creates a new table, a view of a table, or other object in the database. ALTER Modifies an existing database object, such as a table. DROP Deletes an entire table, a view of a table or other objects in the database. TRUNCATE Truncates the entire table in a go. Data Manipulation Language SQL includes commands to insert, update, delete, and retrieve data within the database tables. Examples: INSERT, UPDATE, DELETE, SELECT, ______, ______

COMMIT, ROLLBACK

Data Definition Language (DDL) includes commands to create database objects such as tables, indexes, and views and commands to define access rights to those database objects. Examples: CREATE DATABASE, CREATE TABLE, ALTER TABLE, DROP TABLE, PRIMARY KEY, ______

FOREIGN KEY

Command that retrieves certain records from one or more tables. INSERT Creates a record. UPDATE Modifies records. DELETE Deletes records. Common SQL Data Types Basic SQL Statements – Part 1 Creating Database Example: If you want to create a database named DBCLASS, the command will be: CREATE DATABASE DBCLASS; Use Database it is essential to set which database will be the default. Whichever is set as default will be the database that the commands will pertain or be performed to. Example: To make the newly created database the default database: USE ______;

DBCLASS

More Like This

Use Quizgecko on...
Browser
Browser