Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the current input statement.

Copyright (c) 2000, 2013, Oracle and/or its affiliates. All

rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or

its

affiliates. Other names may be trademarks of their respective

owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current
input statement.

mysql> show databases;

+--------------------+

| Database |

+--------------------+

| information_schema |

| hwgk_db |

| mysql |

| zrcx_db |

+--------------------+

4 rows in set (0.00 sec)

mysql> user zrcx_db;

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 'user

zrcx_db' at line 1

mysql> use zrcx_db;

Database changed

mysql> selet * from tb_test;

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 'selet

* from tb_test' at line 1

mysql> select * from tb_test;

Empty set (0.04 sec)

mysql> insert into tb_test(id,firstname,lastname,email,phone)

values(id,'lining'

,'aa','aa@qq.com','123353');

Query OK, 1 row affected (0.00 sec)

mysql> select * from tb_test;

+----+-----------+----------+-----------+--------+

| id | firstname | lastname | email | phone |

+----+-----------+----------+-----------+--------+

| 1 | lining | aa | aa@qq.com | 123353 |

+----+-----------+----------+-----------+--------+

1 row in set (0.00 sec)

mysql> insert into tb_test(id,firstname,lastname,email,phone)

values(id,'lining'

,'aa','aa@qq.com','123353');

Query OK, 1 row affected (0.01 sec)

mysql> select * from tb_test;

+----+-----------+----------+-----------+--------+

| id | firstname | lastname | email | phone |

+----+-----------+----------+-----------+--------+

| 1 | lining | aa | aa@qq.com | 123353 |

| 2 | lining | aa | aa@qq.com | 123353 |

+----+-----------+----------+-----------+--------+

2 rows in set (0.00 sec)

mysql> delete from tb_test where id=2;

Query OK, 1 row affected (0.10 sec)

mysql> select * from tb_test;

+----+-----------+----------+-----------+--------+

| id | firstname | lastname | email | phone |

+----+-----------+----------+-----------+--------+

| 1 | lining | aa | aa@qq.com | 123353 |

+----+-----------+----------+-----------+--------+

1 row in set (0.00 sec)

相关推荐
2401_857439692 小时前
SSM 架构下 Vue 电脑测评系统:为电脑性能评估赋能
开发语言·php
SoraLuna2 小时前
「Mac畅玩鸿蒙与硬件47」UI互动应用篇24 - 虚拟音乐控制台
开发语言·macos·ui·华为·harmonyos
xlsw_2 小时前
java全栈day20--Web后端实战(Mybatis基础2)
java·开发语言·mybatis
Dream_Snowar3 小时前
速通Python 第三节
开发语言·python
XH华3 小时前
初识C语言之二维数组(下)
c语言·算法
高山我梦口香糖4 小时前
[react]searchParams转普通对象
开发语言·前端·javascript
信号处理学渣4 小时前
matlab画图,选择性显示legend标签
开发语言·matlab
红龙创客4 小时前
某狐畅游24校招-C++开发岗笔试(单选题)
开发语言·c++
jasmine s5 小时前
Pandas
开发语言·python
biomooc5 小时前
R 语言 | 绘图的文字格式(绘制上标、下标、斜体、文字标注等)
开发语言·r语言