Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Database Systems - How to create a Database - CREATE DATABASE Statement
Play lesson

Database Systems with SQL - Full Course - Database Systems - How to create a Database - CREATE DATABASE Statement

5.0 (0)
6 learners

What you'll learn

This course includes

  • 4.5 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

You can create a new database with the CREATE DATABASE statement. After creating a database, that is when you can start adding tables to it. To delete a database, use the DROP DATABASE statement, which also deletes all tables in that database. Examples: CREATE DATABASE movies; CREATE DATABASE albums; DROP DATABASE movies; The SHOW statement shows the database developer some useful information about your database tables and columns. Examples: SHOW DATABASES – lists all available databases. You can choose which database to use with the USE statement. Ex: Use albums; SHOW TABLES – lists all tables in the database you are currently using SHOW COLUMNS FROM tableName – lists all the columns of a table, where tableName is the name of the table SHOW CREATE TABLE – shows the CREATE TABLE statement used to create the table The USE statement selects a database Subscribe to Appficial for more programming videos coming soon. Also, don't forget to click LIKE and comment on the video if it helped you out!

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere