Professional Documents
Culture Documents
MySQL Practice Manual PDF
MySQL Practice Manual PDF
C:\Users\DELL>cd c:\xampp\mysql\bin
c:\xampp\mysql\bin>mysql -u root
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.5.27 MySQL Community Server (GPL)
Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights
reserved.
Type 'help;' or '\h' for help. Type '\c' to clear the current input
statement.
Page | 1
MySQL Practice MIS-410, EWU
Page | 2
MySQL Practice MIS-410, EWU
Page | 3
MySQL Practice MIS-410, EWU
Page | 4
MySQL Practice MIS-410, EWU
mysql> CREATE TABLE scores ( Id int, match1 int, match2 int, match3
int, match4 int);
Query OK, 0 rows affected (0.02 sec)
Page | 5
MySQL Practice MIS-410, EWU
Page | 6
MySQL Practice MIS-410, EWU
Page | 7
MySQL Practice MIS-410, EWU
Page | 8
MySQL Practice MIS-410, EWU
Page | 9
MySQL Practice MIS-410, EWU
Page | 10
MySQL Practice MIS-410, EWU
+-----------+------------+------------+
| firstname | location | total_runs |
+-----------+------------+------------+
| Brian | Chittagong | 400 |
| Shakib-Al | Shylhet | 357 |
| Umar | Dhaka | 340 |
| Chris | Bogura | 322 |
| Shahid | Barisal | 229 |
+-----------+------------+------------+
5 rows in set (0.00 sec)
Page | 11
MySQL Practice MIS-410, EWU
Page | 12
MySQL Practice MIS-410, EWU
Page | 13
MySQL Practice MIS-410, EWU
Page | 14
MySQL Practice MIS-410, EWU
Page | 15