0% found this document useful (0 votes)
6 views

MYSQL

MySQL is a widely used open-source relational database management system known for its speed, reliability, and scalability, suitable for both small and large applications. It is utilized by major websites and content management systems, and operates using SQL for data manipulation. Key features include the ability to create and manage database tables, execute various SQL commands, and filter records using the WHERE clause.

Uploaded by

stutisharma0608
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

MYSQL

MySQL is a widely used open-source relational database management system known for its speed, reliability, and scalability, suitable for both small and large applications. It is utilized by major websites and content management systems, and operates using SQL for data manipulation. Key features include the ability to create and manage database tables, execute various SQL commands, and filter records using the WHERE clause.

Uploaded by

stutisharma0608
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

MYSQL

MySQL is a very popular open-source relational database management system (RDBMS).

What is MySQL?
• MySQL is a relational database management system
• MySQL is open-source
• MySQL is free
• MySQL is ideal for both small and large applications
• MySQL is very fast, reliable, scalable, and easy to use
• MySQL is cross-platform
• MySQL is compliant with the ANSI SQL standard
• MySQL was first released in 1995
• MySQL is developed, distributed, and supported by Oracle Corporation
• MySQL is named after co-founder Monty Widenius's daughter: My

Who Uses MySQL?


• Huge websites like Facebook, Twitter, Airbnb, Booking.com, Uber, GitHub,
YouTube, etc.
• Content Management Systems like WordPress, Drupal, Joomla!, Contao, etc.
• A very large number of web developers around the world

What is RDBMS?
RDBMS stands for Relational Database Management System. RDBMS is a program used
to maintain a relational database. RDBMS is the basis for all modern database systems
such as MySQL, Microsoft SQL Server, Oracle, and Microsoft Access. RDBMS uses SQL
queries to access the data in the database

What is a Database Table?


A table is a collection of related data entries, and it consists of columns and rows.

A column holds specific information about every record in the table.

A record (or row) is each individual entry that exists in a table

What is a Relational Database?


A relational database defines database relationships in the form of tables. The tables are
related to each other - based on data common to each
What is SQL?
SQL is the standard language for dealing with Relational Databases.

SQL is used to insert, search, update, and delete database records.

Some of The Most Important SQL Commands


• SELECT - extracts data from a database
• UPDATE - updates data in a database
• DELETE - deletes data from a database
• INSERT INTO - inserts new data into a database
• CREATE DATABASE - creates a new database
• ALTER DATABASE - modifies a database
• CREATE TABLE - creates a new table
• ALTER TABLE - modifies a table
• DROP TABLE - deletes a table
• CREATE INDEX - creates an index (search key)
• DROP INDEX - deletes an index

The MySQL SELECT Statement


The SELECT statement is used to select data from a database.

The data returned is stored in a result table, called the result-set.

SELECT Syntax: SELECT * FROM table_name; =>selects ALL the columns from the table

SELECT COLUMN EXAMPLE: SELECT column_name FROM table_name;

SELECT DISTINCT EXAMPLE: SELECT DISTINCT coulumn_name FROM table_name;

SELECT COUNT EXAMPLE: SELECT COUNT(DISTINCT column_name) FROM table_name;

The MySQL WHERE Clause:


SELECT column_name FROM table_name WHERE condition;

The WHERE clause is used to filter records. It is used to extract only those records that
fulfill a specified condition.

SQL requires single quotes around text values however numeric values should not be
enclosed within quotes.

The following operators can be used in the WHERE clause: =, >, <, >=, <=, <>(or)!=,
BETWEEN, LIKE, IN

You might also like