• MySQL BETWEEN AND关键字


    mysql> select * from student;
    +------+------+-----------+
    | age  | name | address   |
    +------+------+-----------+
    |   12 | Jack | BeiJing   |
    |   19 | Mike | TianJin   |
    |   21 | Rose | ZhuHai    |
    |   23 | Ann  | ShangHai  |
    |   27 | Alis | ShenZhen  |
    |   55 | Make | GuangZhou |
    +------+------+-----------+
    6 rows in set (0.00 sec)

    mysql>

    mysql> select * from student where age between 15 and 30;
    +------+------+----------+
    | age  | name | address  |
    +------+------+----------+
    |   19 | Mike | TianJin  |
    |   21 | Rose | ZhuHai   |
    |   23 | Ann  | ShangHai |
    |   27 | Alis | ShenZhen |
    +------+------+----------+
    4 rows in set (0.07 sec)
    
    mysql>

    mysql> select * from student where age not between 15 and 30;
    +------+------+-----------+
    | age  | name | address   |
    +------+------+-----------+
    |   12 | Jack | BeiJing   |
    |   55 | Make | GuangZhou |
    +------+------+-----------+
    2 rows in set (0.00 sec)

    
    

    mysql>

    
    
  • 相关阅读:
    美化盒子和文本字体
    图片和多媒体
    学习node1_module对象
    学习vue5_组件
    学习vue4_input
    学习vue3
    学习vue2
    Ubuntu中U盘识别不了
    docker 建立新用户软件安装环境ubuntu
    计算机性能优化笔记
  • 原文地址:https://www.cnblogs.com/Robotke1/p/3054388.html
Copyright © 2020-2023  润新知