source d:/wch/wch.txt
show databases;
show tables;
select * from student;
=======================================
运行结果:
mysql> source d:/wch/wch.txt
Query OK, 1 row affected (0.00 sec)
Database changed
Query OK, 0 rows affected (0.12 sec)
Query OK, 0 rows affected (0.14 sec)
Query OK, 0 rows affected (0.15 sec)
Query OK, 0 rows affected (0.00 sec)
Query OK, 0 rows affected (0.00 sec)
Query OK, 0 rows affected (0.00 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.03 sec)
Query OK, 1 row affected (0.03 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.04 sec)
Query OK, 1 row affected (0.03 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.07 sec)
Query OK, 1 row affected (0.09 sec)
Query OK, 1 row affected (0.11 sec)
Query OK, 1 row affected (0.05 sec)
Query OK, 1 row affected (0.05 sec)
Query OK, 1 row affected (0.03 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.02 sec)
Rows matched: 1 Changed: 1 Warnings: 0
Query OK, 1 row affected (0.02 sec)
Rows matched: 1 Changed: 1 Warnings: 0
Query OK, 1 row affected (0.01 sec)
Rows matched: 1 Changed: 1 Warnings: 0
Query OK, 1 row affected (0.01 sec)
Rows matched: 1 Changed: 1 Warnings: 0
Query OK, 1 row affected (0.02 sec)
Rows matched: 1 Changed: 1 Warnings: 0
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.05 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.03 sec)
Query OK, 1 row affected (0.28 sec)
Query OK, 1 row affected (0.34 sec)
Query OK, 1 row affected (0.53 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.74 sec)
Query OK, 1 row affected (0.08 sec)
Query OK, 1 row affected (0.03 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.01 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.02 sec)
Query OK, 1 row affected (0.02 sec)
mysql> show databases;
±-------------------+
| Database |
±-------------------+
| information_schema |
| mysql |
| performance_schema |
| st |
| test |
| wchst |
±-------------------+
6 rows in set (0.00 sec)
mysql> show tables;
±----------------+
| Tables_in_wchst |
±----------------+
| course |
| sc |
| student |
±----------------+
3 rows in set (0.00 sec)
mysql> select * from student;
±----------±-------±-----±-----±------+
| sno | sname | ssex | sage | sdept |
±----------±-------±-----±-----±------+
| 200215101 | 崔深梁 | 女 | 17 | MA |
| 200215102 | 潘声引 | 女 | 18 | MA |
| 200215103 | 冯睛拓 | 女 | 20 | IS |
| 200215104 | 陈钟裳 | 女 | 20 | IS |
| 200215105 | 胡颖笔 | 男 | 20 | IS |
| 200215106 | 梁树得 | 男 | 20 | MA |
| 200215107 | 罗开是 | 男 | 16 | MA |
| 200215108 | 崔贾易 | 男 | 18 | MA |
| 200215109 | 黎拓树 | 男 | 20 | MA |
| 200215110 | 贺声代 | 男 | 17 | MA |
| 200215111 | 方久景 | 女 | 20 | MA |
| 200215112 | 魏沉因 | 男 | 18 | IS |
| 200215113 | 龚愈枫 | 男 | 20 | MA |
| 200215114 | 贾到黎 | 女 | 17 | MA |
| 200215115 | 邹桥梁 | 女 | 20 | MA |
| 200215116 | 钱宿钟 | 男 | 19 | MA |
| 200215117 | 万首情 | 男 | 16 | MA |
| 200215118 | 胡睛音 | 女 | 16 | IS |
| 200215119 | 段的写 | 女 | 20 | MA |
| 200215120 | 谢歌音 | 男 | 16 | IS |
| 200215121 | 薛得显 | 女 | 19 | MA |
| 200215122 | 王得景 | 女 | 16 | MA |
| 200215123 | 姚思岛 | 女 | 17 | IS |
| 200215124 | 郝阔钟 | 女 | 18 | IS |
| 200215125 | 江居到 | 男 | 20 | MA |
| 200215126 | 武深唐 | 女 | 19 | IS |
| 200215127 | 萧桥愈 | 女 | 17 | MA |
| 200215128 | 阎行的 | 男 | 17 | MA |
| 200215129 | 王树桥 | 男 | 18 | MA |
| 200215130 | 林首情 | 女 | 17 | MA |
| 200215131 | 汪青种 | 男 | 20 | MA |
| 200215132 | 白字果 | 女 | 17 | IS |
| 200215133 | 唐据山 | 男 | 18 | IS |
| 200215134 | 吴代还 | 男 | 20 | MA |
| 200215135 | 龙种贾 | 男 | 18 | IS |
| 200215136 | 张贾得 | 男 | 18 | IS |
| 200215137 | 陆颖桥 | 女 | 17 | IS |
| 200215138 | 戴愈很 | 男 | 18 | IS |
| 200215139 | 曾联音 | 男 | 16 | MA |
| 200215140 | 毛音字 | 女 | 17 | MA |
| 200215141 | 秦岛黎 | 女 | 20 | MA |
| 200215142 | 何愈诗 | 男 | 20 | IS |
| 200215143 | 戴种豪 | 女 | 17 | MA |
| 200215144 | 黄阔晨 | 男 | 17 | MA |
| 200215145 | 丁领运 | 女 | 16 | IS |
| 200215146 | 钟带的 | 男 | 16 | MA |
| 200215147 | 高声竟 | 男 | 19 | IS |
| 200215148 | 贺实诗 | 男 | 19 | MA |
| 200215149 | 董境阔 | 男 | 20 | MA |
| 200215150 | 戴还黎 | 男 | 20 | MA |
±----------±-------±-----±-----±------+
50 rows in set (0.00 sec)