Professional Documents
Culture Documents
QUICK REVIEW
• Open Source Databases
MySQL is a database.
The data in MySQL is stored in database
objects called tables.
A table is a collection of related data entries
and it consists of columns and rows.
Databases are useful when storing information
categorically. A company may have a database
with the following tables: "Employees",
"Products", "Customers" and "Orders".
Database Tables
mysql_connect(servername,username,pass
word);
Closing a Connection
C:\Progra~1\xampp\mysql\bin\mysql –u root
• Enter password if there is any.
• Type commands in MySQL prompt which looks like this:
mysql >
Basic Commands
mysql > \c
mysql > \s
mysql > \h
mysql > ?
mysql > \?
Try it!!!
Adding Values
- > Insert Into <tblname>
- > Values (value1, value2, value3…);