1. The document shows SQL commands used to create databases, tables, insert and modify data in MySQL.
2. Two tables 'STD' and 'DEPT' are created with various fields, rows of data are inserted and updated, and the table structure is modified over time.
3. Queries like SELECT, UPDATE, DELETE are used to view, edit and remove rows from the tables.
1. The document shows SQL commands used to create databases, tables, insert and modify data in MySQL.
2. Two tables 'STD' and 'DEPT' are created with various fields, rows of data are inserted and updated, and the table structure is modified over time.
3. Queries like SELECT, UPDATE, DELETE are used to view, edit and remove rows from the tables.
1. The document shows SQL commands used to create databases, tables, insert and modify data in MySQL.
2. Two tables 'STD' and 'DEPT' are created with various fields, rows of data are inserted and updated, and the table structure is modified over time.
3. Queries like SELECT, UPDATE, DELETE are used to view, edit and remove rows from the tables.
1. The document shows SQL commands used to create databases, tables, insert and modify data in MySQL.
2. Two tables 'STD' and 'DEPT' are created with various fields, rows of data are inserted and updated, and the table structure is modified over time.
3. Queries like SELECT, UPDATE, DELETE are used to view, edit and remove rows from the tables.
+-------+-------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-------+-------------+------+-----+---------+-------+ | ID | int(11) | YES | | NULL | | | NAME | varchar(20) | YES | | NULL | | | AGE | int(11) | YES | | NULL | | | PER | int(11) | YES | | NULL | | +-------+-------------+------+-----+---------+-------+ 4 rows in set (0.00 sec)
mysql> ALTER TABLE STD MODIFY NAME VARCHAR(30), DROP COLUMN PER; Query OK, 0 rows affected (0.23 sec) Records: 0 Duplicates: 0 Warnings: 0
mysql> DESC STD;
+-------+-------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-------+-------------+------+-----+---------+-------+ | ID | int(11) | YES | | NULL | | | NAME | varchar(30) | YES | | NULL | | | AGE | int(11) | YES | | NULL | | +-------+-------------+------+-----+---------+-------+ 3 rows in set (0.00 sec)
mysql> RENAME STD TO STDINFO;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'STD TO STDINFO' at line 1 mysql> RENAME TABLE STD TO STDINFO; Query OK, 0 rows affected (0.03 sec)
mysql> DESC STD;
ERROR 1146 (42S02): Table 'gpy.std' doesn't exist mysql> DESC STDINFO; +-------+-------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-------+-------------+------+-----+---------+-------+ | ID | int(11) | YES | | NULL | | | NAME | varchar(30) | YES | | NULL | | | AGE | int(11) | YES | | NULL | | +-------+-------------+------+-----+---------+-------+ 3 rows in set (0.00 sec)
mysql> DROP TABLE STDINFO;
Query OK, 0 rows affected (0.01 sec)
mysql> DESC STDINFO;
ERROR 1146 (42S02): Table 'gpy.stdinfo' doesn't exist mysql> CREATE TABLE STD ( ID INT ,NAME VARCHAR(20), AGE INT); Query OK, 0 rows affected (0.05 sec) mysql> ALTER TABLE STD ADD PER INT; Query OK, 0 rows affected (0.13 sec) Records: 0 Duplicates: 0 Warnings: 0
mysql> DESC STD;
+-------+-------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-------+-------------+------+-----+---------+-------+ | ID | int(11) | YES | | NULL | | | NAME | varchar(20) | YES | | NULL | | | AGE | int(11) | YES | | NULL | | | PER | int(11) | YES | | NULL | | +-------+-------------+------+-----+---------+-------+ 4 rows in set (0.00 sec)
mysql> INSERT INTO STD VALUES(1,'SSS',20,60);
Query OK, 1 row affected (0.01 sec)
mysql> INSERT INTO STD (NAME,PER,AGE,ID) VALUES('DFD',60,20,2);
Query OK, 1 row affected (0.02 sec)
mysql> SELECT * FROM STD;
+------+------+------+------+ | ID | NAME | AGE | PER | +------+------+------+------+ | 1 | SSS | 20 | 60 | | 2 | DFD | 20 | 60 | +------+------+------+------+ 2 rows in set (0.00 sec)
mysql> INSERT INTO STD VALUES('DFD',20,2);
ERROR 1136 (21S01): Column count doesn't match value count at row 1 mysql> INSERT INTO STD VALUES(3,'SDFFGSS',20,NULL); Query OK, 1 row affected (0.05 sec)
mysql> SELECT * FROM STD;
+------+---------+------+------+ | ID | NAME | AGE | PER | +------+---------+------+------+ | 1 | SSS | 20 | 60 | | 2 | DFD | 20 | 60 | | 3 | SDFFGSS | 20 | NULL | +------+---------+------+------+ 3 rows in set (0.00 sec)
mysql> INSERT INTO STD (NAME,AGE,ID) VALUES('DFD',20,2);
Query OK, 1 row affected (0.02 sec)
mysql> SELECT * FROM STD;
+------+---------+------+------+ | ID | NAME | AGE | PER | +------+---------+------+------+ | 1 | SSS | 20 | 60 | | 2 | DFD | 20 | 60 | | 3 | SDFFGSS | 20 | NULL | | 2 | DFD | 20 | NULL | +------+---------+------+------+ 4 rows in set (0.00 sec) mysql> UPDATE STD SET PER = 80 WHERE ID = 3; Query OK, 1 row affected (0.02 sec) Rows matched: 1 Changed: 1 Warnings: 0
mysql> SELECT * FROM STD;
+------+---------+------+------+ | ID | NAME | AGE | PER | +------+---------+------+------+ | 1 | SSS | 20 | 60 | | 2 | DFD | 20 | 60 | | 3 | SDFFGSS | 20 | 80 | | 2 | DFD | 20 | NULL | +------+---------+------+------+ 4 rows in set (0.00 sec)
mysql> UPDATE STD SET PER = 80,AGE = 30 WHERE ID = 1;
+----+------+------+------+ | ID | NAME | AGE | PER | +----+------+------+------+ | 1 | SSS | 20 | 60 | +----+------+------+------+ 1 row in set (0.00 sec)
Analysis of Hidden Data in the NTFS File System 3452 wersd Analysis of Hidden Data in the NTFS File System Analysis of Hidden Data in the NTFS File System Analysis of Hidden Data in the NTFS File System
Analysis of Hidden Data in the NTFS File System 3452 wersd Analysis of Hidden Data in the NTFS File System Analysis of Hidden Data in the NTFS File System Analysis of Hidden Data in the NTFS File System