創(chuàng)建數(shù)據(jù)表:
創(chuàng)新互聯(lián)是一家集網(wǎng)站建設,合陽企業(yè)網(wǎng)站建設,合陽品牌網(wǎng)站建設,網(wǎng)站定制,合陽網(wǎng)站建設報價,網(wǎng)絡營銷,網(wǎng)絡優(yōu)化,合陽網(wǎng)站推廣為一體的創(chuàng)新建站企業(yè),幫助傳統(tǒng)企業(yè)提升企業(yè)形象加強企業(yè)競爭力??沙浞譂M足這一群體相比中小企業(yè)更為豐富、高端、多元的互聯(lián)網(wǎng)需求。同時我們時刻保持專業(yè)、時尚、前沿,時刻以成就客戶成長自我,堅持不斷學習、思考、沉淀、凈化自己,讓我們?yōu)楦嗟钠髽I(yè)打造出實用型網(wǎng)站。
MySQL> use simonwang
Database changed
mysql> show tables;
Empty set (0.00 sec)
mysql> create table t1 (`id` int(4), `name` char(40));
Query OK, 0 rows affected (0.01 sec)
插入數(shù)據(jù):
mysql> insert into studytable values(1,'test');
Query OK, 1 row affected (0.00 sec)
mysql> select * from studytable;
+------+------+
| id | name |
+------+------+
| 1 | test |
+------+------+
1 row in set (0.00 sec)
修改數(shù)據(jù):
mysql> update studytable set name='updatetest' where id='1';
Query OK, 1 row affected (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 0
mysql> select * from studytable;
+------+------------+
| id | name |
+------+------------+
| 1 | updatetest |
+------+------------+
1 row in set (0.00 sec)
清空數(shù)據(jù)表:
mysql> truncate table studytable;
Query OK, 0 rows affected (0.00 sec)
mysql> select * from studytable;
Empty set (0.00 sec)
刪除數(shù)據(jù)表:
mysql> drop table studytable;
Query OK, 0 rows affected (0.00 sec)
刪除數(shù)據(jù)庫:
mysql> drop database simonwang;
Query OK, 0 rows affected (0.01 sec)