What is MYSQL?
MySQL, pronounced either “My S-Q-L” or “My Sequel”.
MYSQL is an open source relational database management system.
MYSQL is based on the structure query language (SQL), which is used for adding, removing, and modifying information in the database. Standard SQL commands, such as ADD, DROP, INSERT, and UPDATE can be used with MySQL.
Importance of MYSQL?
- MYSQL Database server provides the ultimate in scalability, supporting the capacity to handle deeply embedded applications with a footprint of only 1MB to running massive data warehouses holding terabytes of information.
- Platform Compatability is the best feature of MySQL that it supports all flavors of Linux, UNIX, and Windows being.
- The open source nature of MySQL allows complete customization for those wanting to add unique requirements to the database server.
- A unique storage-engine architecture that allows to configure the MySQL database server specifically for particular applications, with the end result being amazing performance results.
- MYSQL features include complete ACID (atomic, consistent, isolated, durable) transaction support.
- MySQL is not a typical open source project as all the software is owned and supported by Oracle, and because of this, a unique cost and support model are available that provides a unique combination of open source freedom and trusted software with support.
History of MYSQL
- Designed by MySQL AB
- First appeared: 23 May 1995
- Developer :Oracle Corporation
- Current version : 5.7.17
- URL : www.mysql.com
- To create a database in MYSQL:
Syntax: CREATE DATABASE <dbname>;
- To create a table:
Syntax: CREATE TABLE <table_name> (column_name column_type);
- To delete a table:
Syntax: DROP TABLE < table_name> ;
- Insert values into table:
Syntax: INSERT INTO <table_name> ( field1, field2,…fieldN )
( value1, value2,…valueN );
- To fetch data from MySQL table:
Syntax: SELECT * FROM <table_name>; //returns all the fields.
- Firing a condition on data of MYSQL table:
Syntax: SELECT * FROM <table_name> WHERE <condition>
- To Update a value in MYSQL table:
Syntax: UPDATE <table_name> SET field=new-value
- To delete data from a MYSQL table:
DELETE FROM < table_name> [WHERE Clause]