Java知识分享网 - 轻松学习从此开始!    

Java知识分享网

Java1234官方群25:java1234官方群17
Java1234官方群25:838462530
        
SpringBoot+SpringSecurity+Vue+ElementPlus权限系统实战课程 震撼发布        

最新Java全栈就业实战课程(免费)

springcloud分布式电商秒杀实战课程

IDEA永久激活

66套java实战课程无套路领取

锋哥开始收Java学员啦!

Python学习路线图

锋哥开始收Java学员啦!

mysql8.0操作实录 PDF 下载


分享到:
时间:2021-09-09 08:57来源:http://www.java1234.com 作者:转载  侵权举报
mysql8.0操作实录 PDF 下载
失效链接处理
mysql8.0操作实录 PDF 下载


本站整理下载:
提取码:28ri 
 
 
相关截图:
 
主要内容:

Microsoft Windows [版本 10.0.19043.1165]
(c) Microsoft Corporation。保留所有权利。
 
C:\Users\Gavin>mysql -hlocalhost  -u Gavin -p
Enter password: ******
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 9
Server version: 8.0.26 MySQL Community Server - GPL
 
Copyright (c) 2000, 2021, Oracle and/or its affiliates.
 
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           |
+--------------------+
| gavin              |
| information_schema |
| mysql              |
| performance_schema |
| sakila             |
| sys                |
| world              |
+--------------------+
7 rows in set (0.02 sec)
 
mysql> use gavin
Database changed
mysql> show tables;
+-----------------+
| Tables_in_gavin |
+-----------------+
| orders          |
| test01          |
| testbinary      |
| testbit         |
| testchar        |
| testdate        |
| testdatetime    |
| testenum        |
| testenum2       |
| testset         |
| testtext        |
| testtimestamp   |
+-----------------+
12 rows in set (0.00 sec)
 
mysql> drop database gavin;
Query OK, 12 rows affected (0.17 sec)
 
mysql> create table testyunsuan(
    -> a int(11),
    -> b float,
    -> c decimal(5,2)
    -> );
ERROR 1046 (3D000): No database selected
mysql> create database test;
Query OK, 1 row affected (0.01 sec)
 
mysql> create table testyunsuan(
    -> a int(11),
    -> b float,
    -> c decimal(5,2)
    -> );
ERROR 1046 (3D000): No database selected
mysql> use test ;
Database changed
mysql> create table testyunsuan(
    -> a int(11),
    -> b float,
    -> c decimal(5,2)
    -> );
Query OK, 0 rows affected, 1 warning (0.06 sec)
 
mysql> insert into table test values(1,2,3);
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 'table test values(1,2,3)' at line 1
mysql> insert into table testyunsuan values(1,2,3);
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 'table testyunsuan values(1,2,3)' at line 1
mysql> insert into table testyunsuan values(1,2,3.00);

 

------分隔线----------------------------

锋哥公众号


锋哥微信


关注公众号
【Java资料站】
回复 666
获取 
66套java
从菜鸡到大神
项目实战课程

锋哥推荐