SlideShare una empresa de Scribd logo
1 de 1
Descargar para leer sin conexión
Mathematical                                                                                                     Control Flow
             ABS                                                                                                   IFNULL
           SIGN                                                                                                    NULLIF
            MOD                                                                                                    IF
          FLOOR
        CEILING                                                                                                    String
         ROUND                                                                                                     ASCII
             DIV                                                                                                   ORD
             EXP    DATA TYPES                                       MYSQL FUNCTIONS IN PHP                        CONV
              LN                                                                                                   BIN,OCT,HEX
LOG,LOG2,LOG10                      String, length 0 - 255           mysql_affected_rows                           CHAR
                    CHAR
            POW                                                                                                    CONCAT
         POWER      VARCHAR         String, length 0 - 255           mysql_close                                   CONCAT_WS
           SQRT     TINYTEXT        String, length 0 - 255           mysql_connect                                 LENGTH
               PI   TEXT            String, length 0 - 65535         mysql_data_seek                               CHAR_LENGTH
             COS                    String, length 0 - 65535         mysql_db_name                                 BIT_LENGTH
                    BLOB
             SIN                                                                                                   LOCATE
             TAN    MEDIUMTEXT      String, length 0 - 16777215      mysql_errno                                   INSTR
           ACOS     MEDIUMBLOB      String, length 0 - 16777215      mysql_error                                   LPAD
            ASIN    LONGTEXT        String, length 0 - 4294967295    mysql_fetch_array                             RPAD
    ATAN, ATAN2                                                      mysql_fetch_assoc                             LEFT
                    LONGBLOB        String, length 0 - 4294967295
             COT                                                                                                   RIGHT
           RAND     * TINYINT       Integer, -128 to 127             mysql_fetch_field                             SUBSTRING
          LEAST     * SMALLINT      Integer, -32768 to 32767         mysql_fetch_lengths                           MID
      GREATEST      * MEDIUMINT Integer, -8388608 to 8388607         mysql_fetch_object                            SUBSTRING_INDEX
       DEGREES                                                       mysql_fetch_row                               LTRIM
                    * INT       Integer, -2147483648 to
       RADIANS                                                                                                     RTRIM
      TRUNCATE                      2147483647                       mysql_field_flags                             TRIM
                    * BIGINT        Int, -9223372036854775808        mysql_field_len                               SOUNDEX
  Date and Time                     to 9223372036854775807           mysql_field_name                              SPACE
     DAYOFWEEK                                                       mysql_field_seek                              REPLACE
                    FLOAT           Decimal (precise to 23 digits)
       WEEKDAY                                                                                                     REPEAT
   DAYOFMONTH       DOUBLE          Decimal (24 to 53 digits)        mysql_field_table                             REVERSE
     DAYOFYEAR      DECIMAL         "DOUBLE" stored as string        mysql_field_type                              INSERT
          MONTH     DATE            YYYY-MM-DD                       mysql_free_result                             ELT
       DAYNAME                                                       mysql_insert_id                               FIELD
                    DATETIME        YYYY-MM-DD HH:MM:SS
    MONTHNAME                                                                                                      LCASE
        QUARTER     TIMESTAMP       YYYYMMDDHHMMSS                   mysql_list_dbs                                UCASE
           WEEK     TIME            HH:MM:SS                         mysql_list_processes                          LOAD_FILE
            YEAR    ENUM            One of preset options            mysql_list_tables                             QUOTE
      YEARWEEK                                                       mysql_num_fields
                    SET             Selection of preset options
           HOUR                                                                                                    Comparison
         MINUTE                                                      mysql_num_rows                                STRCMP
         SECOND     * Note: "UNSIGNED" TINYINT, SMALLINT,            mysql_pconnect
    PERIOD_ADD      MEDIUMINT, INT, BIGINT have the same             mysql_query                                   Cast
    PERIOD_DIFF                                                      mysql_real_escape_string                      CAST
                    range of values but start at 0, e.g. TINYINT
      DATE_ADD                                                                                                     CONVERT
      DATE_SUB      UNSIGNED is between 0 and 255.                   mysql_select_db
       ADDDATE                                                                                                     Other
        SUBDATE                                                                                                    BIT_COUNT
        EXTRACT     SAMPLE SELECT QUERIES                                                                          DATABASE
        TO_DAYS                                                                                                    USER
     FROM_DAYS      SELECT * FROM tablename                                # Returns all columns                   SYSTEM_USER
   DATE_FORMAT      SELECT column FROM tablename                           # Returns specific column               SESSION_USER
   TIME_FORMAT                                                                                                     CURRENT_USER
                    SELECT COUNT(*) FROM tablename                         # Returns number of rows
  CURRENT_DATE                                                                                                     PASSWORD
  CURRENT_TIME      SELECT SUM(column) FROM tablename                      # Returns sum of column                 OLD_PASSWORD
            NOW     SELECT DISTINCT column FROM tablename                  # Returns unique values of column       ENCRYPT
        SYSDATE     SELECT * FROM tablename WHERE condition                # Returns rows that match condition     DECODE
UNIX_TIMESTAMP                                                                                                     MD5
                    SELECT * FROM tablename WHERE BINARY condition         # Condition is case-sensitive
 FROM_UNIXTIME                                                                                                     SHA1
   SEC_TO_TIME      SELECT * FROM table1 INNER JOIN table2 on              # Join two tables, return all columns   AES_ENCRYPT
   TIME_TO_SEC      table1.id = table2.id                                                                          AES_DECRYPT
                    SELECT table1.* FROM table1 INNER JOIN table2 on       # Only return columns from table1       DES_ENCRYPT
        Group                                                                                                      DES_DECRYPT
                    table1.id = table2.id
        COUNT                                                                                                      LAST_INSERT_ID
          AVG       SELECT LAST_INSERT_ID() as new_id                      # Returns ID of last created row        FORMAT
          MIN       SELECT max(column) AS alias                            # Return maxium value in column as      VERSION
          MAX                                                                "alias"                               CONNECTION_ID
          SUM                                                                                                      GET_LOCK
                    SELECT * FROM table ORDER BY column                    # Return all rows ordering by column
 GROUP_CONCAT                                                                                                      RELEASE_LOCK
     VARIANCE       SELECT * FROM table LIMIT 10, 20                       # Return first 20 rows after row 10     IS_FREE_LOCK
          STD                                                                                                      BENCHMARK
       STDDEV                                                                                                      INET_NTOA
       BIT_OR                                   Available free from AddedBytes.com                                 INET_ATON
      BIT_AND                                                                                                      FOUND_ROWS

Más contenido relacionado

Similar a MySQL Cheatsheet

MYSQL single rowfunc-multirowfunc-groupby-having
MYSQL single rowfunc-multirowfunc-groupby-havingMYSQL single rowfunc-multirowfunc-groupby-having
MYSQL single rowfunc-multirowfunc-groupby-havingAhmed Farag
 
sql functions3 (1).pdf
sql functions3 (1).pdfsql functions3 (1).pdf
sql functions3 (1).pdfUsha570012
 
Webinar slides: Adding Fast Analytics to MySQL Applications with Clickhouse
Webinar slides: Adding Fast Analytics to MySQL Applications with ClickhouseWebinar slides: Adding Fast Analytics to MySQL Applications with Clickhouse
Webinar slides: Adding Fast Analytics to MySQL Applications with ClickhouseAltinity Ltd
 
ProxySQL and the Tricks Up Its Sleeve - Percona Live 2022.pdf
ProxySQL and the Tricks Up Its Sleeve - Percona Live 2022.pdfProxySQL and the Tricks Up Its Sleeve - Percona Live 2022.pdf
ProxySQL and the Tricks Up Its Sleeve - Percona Live 2022.pdfJesmar Cannao'
 
Inexpensive Datamasking for MySQL with ProxySQL — Data Anonymization for Deve...
Inexpensive Datamasking for MySQL with ProxySQL — Data Anonymization for Deve...Inexpensive Datamasking for MySQL with ProxySQL — Data Anonymization for Deve...
Inexpensive Datamasking for MySQL with ProxySQL — Data Anonymization for Deve...Ontico
 
Window functions for Data Science
Window functions for Data ScienceWindow functions for Data Science
Window functions for Data ScienceMark Tabladillo
 

Similar a MySQL Cheatsheet (8)

MYSQL single rowfunc-multirowfunc-groupby-having
MYSQL single rowfunc-multirowfunc-groupby-havingMYSQL single rowfunc-multirowfunc-groupby-having
MYSQL single rowfunc-multirowfunc-groupby-having
 
sql functions3 (1).pdf
sql functions3 (1).pdfsql functions3 (1).pdf
sql functions3 (1).pdf
 
Webinar slides: Adding Fast Analytics to MySQL Applications with Clickhouse
Webinar slides: Adding Fast Analytics to MySQL Applications with ClickhouseWebinar slides: Adding Fast Analytics to MySQL Applications with Clickhouse
Webinar slides: Adding Fast Analytics to MySQL Applications with Clickhouse
 
ProxySQL and the Tricks Up Its Sleeve - Percona Live 2022.pdf
ProxySQL and the Tricks Up Its Sleeve - Percona Live 2022.pdfProxySQL and the Tricks Up Its Sleeve - Percona Live 2022.pdf
ProxySQL and the Tricks Up Its Sleeve - Percona Live 2022.pdf
 
MySQL for beginners
MySQL for beginnersMySQL for beginners
MySQL for beginners
 
Inexpensive Datamasking for MySQL with ProxySQL — Data Anonymization for Deve...
Inexpensive Datamasking for MySQL with ProxySQL — Data Anonymization for Deve...Inexpensive Datamasking for MySQL with ProxySQL — Data Anonymization for Deve...
Inexpensive Datamasking for MySQL with ProxySQL — Data Anonymization for Deve...
 
Window functions for Data Science
Window functions for Data ScienceWindow functions for Data Science
Window functions for Data Science
 
Mysqlppt
MysqlpptMysqlppt
Mysqlppt
 

Último

Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024The Digital Insurer
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024The Digital Insurer
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 

Último (20)

Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 

MySQL Cheatsheet

  • 1. Mathematical Control Flow ABS IFNULL SIGN NULLIF MOD IF FLOOR CEILING String ROUND ASCII DIV ORD EXP DATA TYPES MYSQL FUNCTIONS IN PHP CONV LN BIN,OCT,HEX LOG,LOG2,LOG10 String, length 0 - 255 mysql_affected_rows CHAR CHAR POW CONCAT POWER VARCHAR String, length 0 - 255 mysql_close CONCAT_WS SQRT TINYTEXT String, length 0 - 255 mysql_connect LENGTH PI TEXT String, length 0 - 65535 mysql_data_seek CHAR_LENGTH COS String, length 0 - 65535 mysql_db_name BIT_LENGTH BLOB SIN LOCATE TAN MEDIUMTEXT String, length 0 - 16777215 mysql_errno INSTR ACOS MEDIUMBLOB String, length 0 - 16777215 mysql_error LPAD ASIN LONGTEXT String, length 0 - 4294967295 mysql_fetch_array RPAD ATAN, ATAN2 mysql_fetch_assoc LEFT LONGBLOB String, length 0 - 4294967295 COT RIGHT RAND * TINYINT Integer, -128 to 127 mysql_fetch_field SUBSTRING LEAST * SMALLINT Integer, -32768 to 32767 mysql_fetch_lengths MID GREATEST * MEDIUMINT Integer, -8388608 to 8388607 mysql_fetch_object SUBSTRING_INDEX DEGREES mysql_fetch_row LTRIM * INT Integer, -2147483648 to RADIANS RTRIM TRUNCATE 2147483647 mysql_field_flags TRIM * BIGINT Int, -9223372036854775808 mysql_field_len SOUNDEX Date and Time to 9223372036854775807 mysql_field_name SPACE DAYOFWEEK mysql_field_seek REPLACE FLOAT Decimal (precise to 23 digits) WEEKDAY REPEAT DAYOFMONTH DOUBLE Decimal (24 to 53 digits) mysql_field_table REVERSE DAYOFYEAR DECIMAL "DOUBLE" stored as string mysql_field_type INSERT MONTH DATE YYYY-MM-DD mysql_free_result ELT DAYNAME mysql_insert_id FIELD DATETIME YYYY-MM-DD HH:MM:SS MONTHNAME LCASE QUARTER TIMESTAMP YYYYMMDDHHMMSS mysql_list_dbs UCASE WEEK TIME HH:MM:SS mysql_list_processes LOAD_FILE YEAR ENUM One of preset options mysql_list_tables QUOTE YEARWEEK mysql_num_fields SET Selection of preset options HOUR Comparison MINUTE mysql_num_rows STRCMP SECOND * Note: "UNSIGNED" TINYINT, SMALLINT, mysql_pconnect PERIOD_ADD MEDIUMINT, INT, BIGINT have the same mysql_query Cast PERIOD_DIFF mysql_real_escape_string CAST range of values but start at 0, e.g. TINYINT DATE_ADD CONVERT DATE_SUB UNSIGNED is between 0 and 255. mysql_select_db ADDDATE Other SUBDATE BIT_COUNT EXTRACT SAMPLE SELECT QUERIES DATABASE TO_DAYS USER FROM_DAYS SELECT * FROM tablename # Returns all columns SYSTEM_USER DATE_FORMAT SELECT column FROM tablename # Returns specific column SESSION_USER TIME_FORMAT CURRENT_USER SELECT COUNT(*) FROM tablename # Returns number of rows CURRENT_DATE PASSWORD CURRENT_TIME SELECT SUM(column) FROM tablename # Returns sum of column OLD_PASSWORD NOW SELECT DISTINCT column FROM tablename # Returns unique values of column ENCRYPT SYSDATE SELECT * FROM tablename WHERE condition # Returns rows that match condition DECODE UNIX_TIMESTAMP MD5 SELECT * FROM tablename WHERE BINARY condition # Condition is case-sensitive FROM_UNIXTIME SHA1 SEC_TO_TIME SELECT * FROM table1 INNER JOIN table2 on # Join two tables, return all columns AES_ENCRYPT TIME_TO_SEC table1.id = table2.id AES_DECRYPT SELECT table1.* FROM table1 INNER JOIN table2 on # Only return columns from table1 DES_ENCRYPT Group DES_DECRYPT table1.id = table2.id COUNT LAST_INSERT_ID AVG SELECT LAST_INSERT_ID() as new_id # Returns ID of last created row FORMAT MIN SELECT max(column) AS alias # Return maxium value in column as VERSION MAX "alias" CONNECTION_ID SUM GET_LOCK SELECT * FROM table ORDER BY column # Return all rows ordering by column GROUP_CONCAT RELEASE_LOCK VARIANCE SELECT * FROM table LIMIT 10, 20 # Return first 20 rows after row 10 IS_FREE_LOCK STD BENCHMARK STDDEV INET_NTOA BIT_OR Available free from AddedBytes.com INET_ATON BIT_AND FOUND_ROWS