MySQL by Examples for Beginners

Jun 29th, 2015
Studypool Tutor
University of Pittsburgh - Titusville
Course: general
Price: $25 USD

Tutor description

A MySQL database server contains many databases (or schemas). Each database consists of one or more tables. A table is made up of columns (or fields) and rows (records).

Word Count: 14626
Showing Page: 1/61
MySQL by Examples for BeginnersRead "How to Install MySQL and Get Started" on how to install, customize, and get started with MySQL.1.Summary of MySQL Commands Used in this TutorialFor detailed syntax, check MySQL manual "SQL Statement Syntax" @ Database-LevelDROP DATABASE databaseName -- Delete the database (irrecoverable!)DROP DATABASE IF EXISTS databaseName -- Delete if it existsCREATE DATABASE databaseName -- Create a new databaseCREATE DATABASE IF NOT EXISTS databaseName -- Create only if it does not existsSHOW DATABASES -- Show all the databases in this serverUSE databaseName -- Set the default (current) databaseSELECT DATABASE() -- Show the default databaseSHOW CREATE DATABASE databaseName -- Show the CREATE DATABASE statement -- Table-LevelDROP TABLE [IF EXISTS] tableName, ...CREATE TABLE [IF NOT EXISTS] tableName ( columnName columnType columnAttribute, ... PRIMARY KEY(columnName), FOREIGN KEY (columnNmae) REFERENCES tableName (columnNmae))SHOW TABLES -- Show all the tables in the default databaseDESCRIBE|DESC tableName -- Describe the details for a tableALTER TABLE tableName ... -- Modify a table, e.g., ADD COLUMN and DROP COLUMNALTER TABLE tableName ADD columnDefinitionALTER TABLE tableName DROP columnNameALTER TABLE tableName A

Review from student

Studypool Student
" Excellent work as always thanks so much "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1827 tutors are online

Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors