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)

相关推荐
Json____33 分钟前
使用python的 FastApi框架开发图书管理系统-前后端分离项目分享
开发语言·python·fastapi·图书管理系统·图书·项目练习
人生在勤,不索何获-白大侠1 小时前
day16——Java集合进阶(Collection、List、Set)
java·开发语言
LIN-JUN-WEI1 小时前
[ESP32]VSCODE+ESP-IDF环境搭建及blink例程尝试(win10 win11均配置成功)
c语言·开发语言·ide·vscode·单片机·学习·编辑器
望获linux2 小时前
【Linux基础知识系列】第四十三篇 - 基础正则表达式与 grep/sed
linux·运维·服务器·开发语言·前端·操作系统·嵌入式软件
留不住丨晚霞3 小时前
说说SpringBoot常用的注解?
java·开发语言
hardStudy_h3 小时前
C++——内联函数与Lambda表达式
开发语言·jvm·c++
艾莉丝努力练剑3 小时前
【C语言】学习过程教训与经验杂谈:思想准备、知识回顾(三)
c语言·开发语言·数据结构·学习·算法
黑听人3 小时前
【力扣 困难 C】115. 不同的子序列
c语言·leetcode
witton5 小时前
Go语言网络游戏服务器模块化编程
服务器·开发语言·游戏·golang·origin·模块化·耦合
枯萎穿心攻击5 小时前
ECS由浅入深第三节:进阶?System 的行为与复杂交互模式
开发语言·unity·c#·游戏引擎