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','[email protected]','123353');

Query OK, 1 row affected (0.00 sec)

mysql> select * from tb_test;

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

| id | firstname | lastname | email | phone |

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

| 1 | lining | aa | [email protected] | 123353 |

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

1 row in set (0.00 sec)

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

values(id,'lining'

,'aa','[email protected]','123353');

Query OK, 1 row affected (0.01 sec)

mysql> select * from tb_test;

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

| id | firstname | lastname | email | phone |

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

| 1 | lining | aa | [email protected] | 123353 |

| 2 | lining | aa | [email protected] | 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 | [email protected] | 123353 |

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

1 row in set (0.00 sec)

相关推荐
江沉晚呤时10 分钟前
深入解析策略模式在C#中的应用与实现
java·服务器·开发语言·前端·.netcore
居然是阿宋11 分钟前
Kotlin 中的 `reified` 关键字全解析:保留类型信息 + 优化高阶函数的双重魔法
android·开发语言·kotlin
安迪小宝1 小时前
python基础语法13-装饰器
开发语言·前端·python
小八四爱吃甜食1 小时前
【R语言绘图】圈图绘制代码
开发语言·r语言
残月只会敲键盘1 小时前
C++ Lambda表达式简明指南:新手快速上手
开发语言·c++
liwulin05061 小时前
【JAVA】JVM 堆内存“缓冲空间”的压缩机制及调整方法
java·开发语言·jvm
Simon—欧阳1 小时前
C#异步方法返回Task<T>的同步调用
开发语言·前端·javascript
michaelzhouh1 小时前
php调用大模型应用接口实现流式输出以及数据过滤
开发语言·php·php调用大模型api流式输出
小郝 小郝1 小时前
【C语言】浮点数在内存的储存
c语言·开发语言
阿里云云原生1 小时前
C语言 AI 通义灵码 VSCode插件安装与功能详解
c语言