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)

相关推荐
hahaha60166 小时前
HLS高层次综合设计--axi之burst纠偏
开发语言·算法·fpga开发·c#
SunnyDays10116 小时前
如何使用 Python 给 PDF 添加附件:文档附件与附件注释
开发语言·python·pdf
xx~t6 小时前
嵌入式——Linux软件编程——数据库
linux·c语言·数据库·oracle·sqlite
学逆向的6 小时前
扩展PE头属性说明
开发语言·网络安全·pe
水饺编程6 小时前
第5章,[Win32 章节] :圆角矩形教学插图绘制程序
c语言·c++·windows·visual studio
是隼人6 小时前
buuctf-pwn PWN4(双引号的转义缺陷)题解(学习过程持续更新)
c语言·学习·安全·pwn入门·ctf入门
秋名RG6 小时前
Java 基础语法
java·开发语言
码行山野赴时序归途6 小时前
C 语言文件操作完全指南:从打开到关闭
c语言·开发语言
2501_937860946 小时前
Java 文件操作与IO(下):字节流、字符流实战IO读写
java·开发语言·python
事圆则缓7 小时前
Kotlin 高阶工程化与 Android 深入实践
android·开发语言·kotlin