MySQL Keynote

1、Keywords may be entered in any lettercase. The following queries are equivalent:

  MySQL Keynote

2、Here is another query. It demonstrates that you can use mysql as a simple calculator:

  MySQL Keynote

3、所有查询以;结尾。

4、显示数据库。 SHOW DATABASES does not show databases that you have no privileges

  MySQL Keynote

5、If the test database exists, try to access it:

  MySQL Keynote

6、创建数据库。

  MySQL Keynote

  nder Unix, database names are case sensitive (unlike SQL keywords), so you must always refer to your database as menagerie, not asMenagerieMENAGERIE, or some other variant. 

7、显示tables

  MySQL Keynote

8、查看表定义.

  MySQL Keynote

 

9、使用insert插入数据

  MySQL Keynote

10、更新数据 

  MySQL Keynote

 

11、时间计算

  MySQL Keynote

 

12、取出日期中的月份

  MySQL Keynote

13、DATE_ADD可以添加时间。

  MySQL Keynote

 

14、MOD是模运算。

  MySQL Keynote

 

% to match an arbitrary number of characters (including zero characters).

  MySQL Keynote

16、Number of animals per combination of species and sex:

  MySQL Keynote

https://dev.mysql.com/doc/refman/5.7/en/entering-queries.html

相关文章:

  • 2021-12-18
  • 2022-01-20
  • 2021-05-21
  • 2021-07-02
  • 2022-01-14
  • 2021-09-13
  • 2022-01-30
  • 2021-09-14
猜你喜欢
  • 2021-08-07
  • 2021-08-16
  • 2022-02-21
  • 2022-01-25
  • 2021-11-19
  • 2021-09-29
  • 2021-06-21
相关资源
相似解决方案