SQLite Tutorial

  • Home
  • Views
  • Indexes
  • Triggers
  • Functions
    • Aggregate Functions
    • Date Functions
    • String Functions
    • Window Functions
  • Interfaces
    • SQLite Java
    • SQLite Node.js
    • SQLite PHP
    • SQLite Python
  • Try It
Home / SQLite Functions

SQLite Functions

This section provides you with the core functions of the SQLite including aggregate functions, date & time functions, string functions, and math functions.

SQLite aggregate functions

NameDescription
AVGReturns the average value of non-null values in a group
COUNTReturn the total number of rows in a table.
MAXReturns the maximum value of all values in a group.
MINReturns the minimum value of all values in a group.
SUMReturns the sum of all non-null values in a column
GROUP_CONCATConcatenates non-null values in a column

SQLite string functions

NameDescription
SUBSTRExtracts and returns a substring with a predefined length starting at a specified position in a source string
TRIMReturns a copy of a string that has specified characters removed from the beginning and the end of a string.
LTRIMReturns a copy of a string that has specified characters removed from the beginning of a string.
RTRIMReturns a copy of a string that has specified characters removed from the end of a string.
LENGTHReturns the number of characters in a string or the number of byte in a BLOB.
REPLACEReturn a copy of a string with each instance of a substring replaced by the other substring.
UPPERReturns a copy of a string with all of the characters converted to uppercase.
LOWERReturns a copy of a string with all of the characters converted to lowercase.
INSTRFinds a substring in a string and returns an integer indicating the position of the first occurrence of the substring.

SQLite control flow functions

NameDescription
COALESCEReturns the first non-null argument
IFNULLProvides the NULL if/else construct
NULLIFReturns NULL if the first argument is equal to the second argument.

SQlite date and time functions

NameDescription
DATECalculates the date based on multiple date modifiers.
TIMECalculates the time based on multiple date modifiers.
DATETIMECalculates the date & time based on one or more date modifiers.
JULIANDAYReturns the Julian day, which is the number of days since noon in Greenwich on November 24, 4714 B.C.
STRFTIMEFormats the date based on a specified format string.

SQLite math functions

NameDescription
ABSReturns the absolute value of a number
RANDOMReturns a random floating-point value between the minimum and maximum integer values
ROUNDRound off a floating value to a specified precision.
  • Was this tutorial helpful ?
  • YesNo
Previous Tutorial: SQLite Window Functions
Next Tutorial: SQLite Java

Getting Started

  • What Is SQLite
  • Download & Install SQLite
  • SQLite Sample Database
  • SQLite Commands

SQLite Tutorial

  • SQLite Select
  • SQLite Order By
  • SQLite Select Distinct
  • SQLite Where
  • SQLite Limit
  • SQLite BETWEEN
  • SQLite IN
  • SQLite Like
  • SQLite IS NULL
  • SQLite GLOB
  • SQLite Join
  • SQLite Inner Join
  • SQLite Left Join
  • SQLite Cross Join
  • SQLite Self-Join
  • SQLite Full Outer Join
  • SQLite Group By
  • SQLite Having
  • SQLite Union
  • SQLite Except
  • SQLite Intersect
  • SQLite Subquery
  • SQLite EXISTS
  • SQLite Case
  • SQLite Insert
  • SQLite Update
  • SQLite Delete
  • SQLite Replace
  • SQLite Transaction

SQLite Data Definition

  • SQLite Data Types
  • SQLite Date & Time
  • SQLite Create Table
  • SQLite Primary Key
  • SQLite Foreign Key
  • SQLite NOT NULL Constraint
  • SQLite UNIQUE Constraint
  • SQLite CHECK Constraint
  • SQLite AUTOINCREMENT
  • SQLite Alter Table
  • SQLite Rename Column
  • SQLite Drop Table
  • SQLite Create View
  • SQLite Drop View
  • SQLite Index
  • SQLite Expression-based Index
  • SQLite Trigger
  • SQLite VACUUM
  • SQLite Transaction
  • SQLite Full-text Search

SQLite Tools

  • SQLite Commands
  • SQLite Show Tables
  • SQLite Describe Table
  • SQLite Dump
  • SQLite Import CSV
  • SQLite Export CSV

SQLite Functions

  • SQLite AVG
  • SQLite COUNT
  • SQLite MAX
  • SQLite MIN
  • SQLite SUM

SQLite Interfaces

  • SQLite PHP
  • SQLite Node.js
  • SQLite Java
  • SQLite Python

About SQLite Tutorial

SQLite Tutorial website helps you master SQLite quickly and easily. It explains the complex concepts in simple and easy-to-understand ways so that you can both understand SQLite fast and know how to apply it in your software development work more effectively.

Looking for a tutorial…

If you did not find the tutorial that you are looking for, you can use the following search box. In case the tutorial is not available, you can request for it using the request for a SQLite tutorial form.

Recent Tutorials

  • SQLite Concat
  • SQLite INSTEAD OF Triggers
  • SQLite Join
  • SQLite IS NULL
  • SQLite Rename Column
  • SQLite DROP VIEW
  • SQLite Window Frame
  • SQLite CUME_DIST

Site Links

  • Home
  • About
  • Contact
  • Resources
  • Privacy Policy

Copyright © 2020 SQLite Tutorial. All rights Reserved.

⤒