10th My SQL
10th My SQL
10th My SQL
DATABASE
Database is a collection of data, which contains information relevant to the enterprise. A database is
a separate application that stores a collection of data. Each database has one or more distinct APIs
for creating, accessing, managing, searching and replicating the data it holds.
DBMS (Data Base Management System) is a collection of inter-related data and set of programs to
access those data. A DBMS refers to software that is responsible for storing, maintaining and utilizing
databases. A database management system (DBMS) is a computer software application that
interacts with end-users, other applications, and the database itself to capture and analyze data.
MySQL Database:
MySQL is a fast, easy-to-use RDBMS being used for many small and big businesses. MySQL is
developed, marketed, and supported by MySQL AB, which is a Swedish company. MySQL is
becoming so popular because of many good reasons:
MySQL is released under an open-source license. So you have nothing to pay to use it.
MySQL is a very powerful program in its own right. It handles a large subset of the
functionality of the most expensive and powerful database packages.
MySQL works on many operating systems and with many languages including PHP, PERL, C,
C++, JAVA, etc.
MySQL works very quickly and works well even with large data sets.
MySQL is very friendly to PHP, the most appreciated language for web development.
MySQL supports large databases, up to 50 million rows or more in a table. The default file
size limit for a table is 4GB, but you can increase this (if your operating system can handle it)
to a theoretical limit of 8 million terabytes (TB).
MySQL is customizable.
SQL GENERAL DATA TYPES
Each column in a database table is required to have a name and a data type.
The following table lists the general data types in SQL:
Data type Description
CHARACTER(n) A fixed-length string between 1 and 255
characters in length (for example CHAR(5)),
right-padded with spaces to the specified
length when stored. Defining a length is not
required, but the default is 1.
VARCHAR(n) Character string. Variable length. Maximum
length n. A variable-length string between 1
and 255 characters in length. For example,
VARCHAR(25). You must define a length when
creating a VARCHAR field.
CREATE – is used to create the database or its objects (like table, index, function, views, store
procedure and triggers).
DROP – is used to delete objects from the database.
ALTER-is used to alter the structure of the database.
RENAME –is used to rename an object existing in the database