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)

相关推荐
XiaoLeisj2 小时前
【JavaEE初阶 — 多线程】单例模式 & 指令重排序问题
java·开发语言·java-ee
励志成为嵌入式工程师3 小时前
c语言简单编程练习9
c语言·开发语言·算法·vim
捕鲸叉3 小时前
创建线程时传递参数给线程
开发语言·c++·算法
A charmer3 小时前
【C++】vector 类深度解析:探索动态数组的奥秘
开发语言·c++·算法
Peter_chq3 小时前
【操作系统】基于环形队列的生产消费模型
linux·c语言·开发语言·c++·后端
记录成长java5 小时前
ServletContext,Cookie,HttpSession的使用
java·开发语言·servlet
前端青山5 小时前
Node.js-增强 API 安全性和性能优化
开发语言·前端·javascript·性能优化·前端框架·node.js
hikktn5 小时前
如何在 Rust 中实现内存安全:与 C/C++ 的对比分析
c语言·安全·rust
睡觉谁叫~~~5 小时前
一文解秘Rust如何与Java互操作
java·开发语言·后端·rust
音徽编程5 小时前
Rust异步运行时框架tokio保姆级教程
开发语言·网络·rust