Git Product home page Git Product logo

sql's Introduction

sql

env

# macos
$ mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 7
Server version: 8.0.16 MySQL Community Server - GPL
...
> show databases
> use [db name]
> show tables
> desc [table name]
> SELECT * FROM [table name]

数据过滤

  • 比较运算符
    • > < >= != !>
    • BETWEEN
    • IS NULL
  • 逻辑运算符
    • AND OR IN NOT
  • 通配符
    • LIKE % *

SQL函数

  • 算术函数
    • ABS MOD ROUND
  • 字符串函数
    • CONCAT LENGTH CHAR_LENGTH LOWER UPPER REPLACE SUBSTRING
  • 日期函数
    • CURRENT_DATE CURRENT_TIME CURRENT_TIMESTAMP EXTRACT DATE YEAR MONTH DAY HOUR MINUTE SECOND
  • 转换函数
    • CAST COALESCE
  • 聚集函数
    • COUNT MAX MIN SUM AVG

sql's People

Contributors

si3ver avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.