SLOPDB / DOCUMENTATION / SQL FUNCTION REFERENCE

Every function.
One place to look.

Function inventory verified against the supplied SlopDB source checkout e5e2eb2. Entries document implemented behavior, including compatibility placeholders and restrictions.

Browse 353 distinct names across 417 documented function forms: native scalars, shared JSON, MySQL-style functions, PostgreSQL functions and overrides, grouped aggregates, and window functions. Aliases have their own entries.

Same name, different rules

Choose the family that matches your session. Native LENGTH counts text characters; MySQL LENGTH counts bytes. MySQL CONCAT returns NULL if any argument is NULL; PostgreSQL CONCAT skips NULL arguments. MySQL LOG(value) is natural log, while PostgreSQL LOG(value) is base 10. Native RANDOM remains an integer in PostgreSQL mode. CHANGES and LAST_INSERT_ROWID currently return zero; PG_GET_SERIAL_SEQUENCE returns NULL.

Core and shared JSON functions remain available alongside dialect-specific functions, subject to overrides. This is a reference to SlopDB’s implementation, not a promise of complete upstream database compatibility. Missing functions, unsupported argument shapes, or invalid input can fail rather than silently emulate a different result.

Find a function

Showing 417 function forms.

SQL function names, families, and topics
FunctionFamilyTopic
ABSNativeNumbers and conversion
ABSMySQL-styleNumeric and mathematical functions
ABSPostgreSQLExact numeric operations
ACOSMySQL-styleNumeric and mathematical functions
ACOSPostgreSQLPostgreSQL mathematical functions
ACOSDPostgreSQLPostgreSQL mathematical functions
ACOSHPostgreSQLPostgreSQL mathematical functions
ADDDATEMySQL-styleDates, times, and calendars
ADDTIMEMySQL-styleDates, times, and calendars
AES_DECRYPTMySQL-styleDigests, encryption, compression
AES_ENCRYPTMySQL-styleDigests, encryption, compression
ASCIIMySQL-styleStrings and bytes
ASCIIPostgreSQLText and bytea
ASINMySQL-styleNumeric and mathematical functions
ASINPostgreSQLPostgreSQL mathematical functions
ASINDPostgreSQLPostgreSQL mathematical functions
ASINHPostgreSQLPostgreSQL mathematical functions
ATANMySQL-styleNumeric and mathematical functions
ATANPostgreSQLPostgreSQL mathematical functions
ATAN2MySQL-styleNumeric and mathematical functions
ATAN2PostgreSQLPostgreSQL mathematical functions
ATAN2DPostgreSQLPostgreSQL mathematical functions
ATANDPostgreSQLPostgreSQL mathematical functions
ATANHPostgreSQLPostgreSQL mathematical functions
AVGAggregateGrouped aggregates
BENCHMARKMySQL-styleSession state and named locks
BINMySQL-styleNumeric and mathematical functions
BIN_TO_UUIDMySQL-styleUUIDs and network addresses
BIT_COUNTMySQL-styleNumeric and mathematical functions
BIT_COUNTPostgreSQLText and bytea
BIT_LENGTHMySQL-styleStrings and bytes
BIT_LENGTHPostgreSQLText and bytea
BTRIMPostgreSQLText and bytea
CASTNativeNumbers and conversion
CBRTPostgreSQLPostgreSQL mathematical functions
CEILMySQL-styleNumeric and mathematical functions
CEILPostgreSQLExact numeric operations
CEILINGMySQL-styleNumeric and mathematical functions
CEILINGPostgreSQLExact numeric operations
CHANGESNativeCompatibility placeholders
CHARMySQL-styleStrings and bytes
CHAR_LENGTHMySQL-styleStrings and bytes
CHAR_LENGTHPostgreSQLText and bytea
CHARACTER_LENGTHMySQL-styleStrings and bytes
CHARACTER_LENGTHPostgreSQLText and bytea
CHARSETMySQL-styleStrings and bytes
CHRPostgreSQLText and bytea
CLOCK_TIMESTAMPPostgreSQLPostgreSQL clocks and temporal values
COALESCENativeConditional values
COLLATIONMySQL-styleStrings and bytes
COMPRESSMySQL-styleDigests, encryption, compression
CONCATMySQL-styleStrings and bytes
CONCATPostgreSQLText and bytea
CONCAT_WSMySQL-styleStrings and bytes
CONCAT_WSPostgreSQLText and bytea
CONNECTION_IDMySQL-styleSession state and named locks
CONVMySQL-styleNumeric and mathematical functions
CONVERTMySQL-styleConversion and full-text syntax
CONVERT_FROMPostgreSQLText and bytea
CONVERT_TOPostgreSQLText and bytea
CONVERT_TZMySQL-styleDates, times, and calendars
COSMySQL-styleNumeric and mathematical functions
COSPostgreSQLPostgreSQL mathematical functions
COSDPostgreSQLPostgreSQL mathematical functions
COSHPostgreSQLPostgreSQL mathematical functions
COTMySQL-styleNumeric and mathematical functions
COTPostgreSQLPostgreSQL mathematical functions
COTDPostgreSQLPostgreSQL mathematical functions
COUNTAggregateGrouped aggregates
CRC32MySQL-styleNumeric and mathematical functions
CURDATEMySQL-styleClocks
CURRENT_DATABASEPostgreSQLCatalog and session helpers
CURRENT_DATEMySQL-styleClocks
CURRENT_DATEPostgreSQLPostgreSQL clocks and temporal values
CURRENT_SCHEMAPostgreSQLCatalog and session helpers
CURRENT_SETTINGPostgreSQLCatalog and session helpers
CURRENT_TIMEMySQL-styleClocks
CURRENT_TIMEPostgreSQLPostgreSQL clocks and temporal values
CURRENT_TIMESTAMPMySQL-styleClocks
CURRENT_TIMESTAMPPostgreSQLPostgreSQL clocks and temporal values
CURRENT_USERMySQL-styleSession state and named locks
CURRENT_USERPostgreSQLCatalog and session helpers
CURTIMEMySQL-styleClocks
DATABASEMySQL-styleSession state and named locks
DATENativeNative date and time
DATE_ADDMySQL-styleDates, times, and calendars
DATE_FORMATMySQL-styleDates, times, and calendars
DATE_PARTPostgreSQLPostgreSQL clocks and temporal values
DATE_SUBMySQL-styleDates, times, and calendars
DATE_TRUNCPostgreSQLPostgreSQL clocks and temporal values
DATEDIFFMySQL-styleDates, times, and calendars
DATETIMENativeNative date and time
DAYMySQL-styleDates, times, and calendars
DAYNAMEMySQL-styleDates, times, and calendars
DAYOFMONTHMySQL-styleDates, times, and calendars
DAYOFWEEKMySQL-styleDates, times, and calendars
DAYOFYEARMySQL-styleDates, times, and calendars
DECODEPostgreSQLText and bytea
DEGREESMySQL-styleNumeric and mathematical functions
DEGREESPostgreSQLPostgreSQL mathematical functions
DENSE_RANKWindowRanking and navigation
DIVPostgreSQLExact numeric operations
ELTMySQL-styleStrings and bytes
ENCODEPostgreSQLText and bytea
EXPMySQL-styleNumeric and mathematical functions
EXPPostgreSQLPostgreSQL mathematical functions
EXPORT_SETMySQL-styleStrings and bytes
EXTRACTMySQL-styleDates, times, and calendars
FACTORIALPostgreSQLExact numeric operations
FIELDMySQL-styleStrings and bytes
FIND_IN_SETMySQL-styleStrings and bytes
FIRST_VALUEWindowRanking and navigation
FLOORMySQL-styleNumeric and mathematical functions
FLOORPostgreSQLExact numeric operations
FORMATMySQL-styleNumeric and mathematical functions
FORMATPostgreSQLText and bytea
FORMAT_TYPEPostgreSQLCatalog and session helpers
FOUND_ROWSMySQL-styleSession state and named locks
FROM_BASE64MySQL-styleStrings and bytes
FROM_DAYSMySQL-styleDates, times, and calendars
FROM_UNIXTIMEMySQL-styleDates, times, and calendars
FULLTEXT_MATCHNativeFull-text search
GCDPostgreSQLExact numeric operations
GEN_RANDOM_UUIDPostgreSQLUUIDs
GET_BITPostgreSQLText and bytea
GET_BYTEPostgreSQLText and bytea
GET_FORMATMySQL-styleDates, times, and calendars
GET_LOCKMySQL-styleSession state and named locks
GREATESTMySQL-styleConditional and scalar values
GROUP_CONCATAggregateGrouped aggregates
HEXNativeStrings and binary values
HOURMySQL-styleDates, times, and calendars
IFMySQL-styleConditional and scalar values
IFNULLNativeConditional values
IIFNativeConditional values
INET_ATONMySQL-styleUUIDs and network addresses
INET_NTOAMySQL-styleUUIDs and network addresses
INET6_ATONMySQL-styleUUIDs and network addresses
INET6_NTOAMySQL-styleUUIDs and network addresses
INITCAPPostgreSQLText and bytea
INSERTMySQL-styleStrings and bytes
INSTRNativeStrings and binary values
IS_FREE_LOCKMySQL-styleSession state and named locks
IS_IPV4MySQL-styleUUIDs and network addresses
IS_IPV4_COMPATMySQL-styleUUIDs and network addresses
IS_IPV4_MAPPEDMySQL-styleUUIDs and network addresses
IS_IPV6MySQL-styleUUIDs and network addresses
IS_NORMALIZEDPostgreSQLText and bytea
IS_USED_LOCKMySQL-styleSession state and named locks
IS_UUIDMySQL-styleUUIDs and network addresses
ISFINITEPostgreSQLPostgreSQL clocks and temporal values
ISNULLMySQL-styleConditional and scalar values
JSONShared JSONCreate and inspect JSON
JSON_ARRAYShared JSONCreate and inspect JSON
JSON_ARRAY_APPENDShared JSONModify JSON
JSON_ARRAY_INSERTShared JSONModify JSON
JSON_ARRAY_LENGTHPostgreSQLPostgreSQL JSON and JSONB
JSON_BUILD_ARRAYPostgreSQLPostgreSQL JSON and JSONB
JSON_BUILD_OBJECTPostgreSQLPostgreSQL JSON and JSONB
JSON_CONTAINSShared JSONRead and compare JSON
JSON_CONTAINS_PATHShared JSONRead and compare JSON
JSON_DEPTHShared JSONCreate and inspect JSON
JSON_EXTRACTShared JSONRead and compare JSON
JSON_EXTRACT_PATHPostgreSQLPostgreSQL JSON and JSONB
JSON_EXTRACT_PATH_TEXTPostgreSQLPostgreSQL JSON and JSONB
JSON_INSERTShared JSONModify JSON
JSON_KEYSShared JSONCreate and inspect JSON
JSON_LENGTHShared JSONCreate and inspect JSON
JSON_MERGEShared JSONModify JSON
JSON_MERGE_PATCHShared JSONModify JSON
JSON_MERGE_PRESERVEShared JSONModify JSON
JSON_OBJECTShared JSONCreate and inspect JSON
JSON_OVERLAPSShared JSONRead and compare JSON
JSON_PRETTYShared JSONCreate and inspect JSON
JSON_QUOTEShared JSONCreate and inspect JSON
JSON_REMOVEShared JSONModify JSON
JSON_REPLACEShared JSONModify JSON
JSON_SEARCHMySQL-styleJSON search
JSON_SETShared JSONModify JSON
JSON_STORAGE_FREEShared JSONCreate and inspect JSON
JSON_STORAGE_SIZEShared JSONCreate and inspect JSON
JSON_STRIP_NULLSPostgreSQLPostgreSQL JSON and JSONB
JSON_TYPEShared JSONCreate and inspect JSON
JSON_TYPEOFPostgreSQLPostgreSQL JSON and JSONB
JSON_UNQUOTEShared JSONCreate and inspect JSON
JSON_VALIDShared JSONCreate and inspect JSON
JSON_VALUEShared JSONRead and compare JSON
JSONBShared JSONCreate and inspect JSON
JSONB_ARRAY_LENGTHPostgreSQLPostgreSQL JSON and JSONB
JSONB_BUILD_ARRAYPostgreSQLPostgreSQL JSON and JSONB
JSONB_BUILD_OBJECTPostgreSQLPostgreSQL JSON and JSONB
JSONB_EXTRACT_PATHPostgreSQLPostgreSQL JSON and JSONB
JSONB_EXTRACT_PATH_TEXTPostgreSQLPostgreSQL JSON and JSONB
JSONB_INSERTPostgreSQLPostgreSQL JSON and JSONB
JSONB_PRETTYPostgreSQLPostgreSQL JSON and JSONB
JSONB_SETPostgreSQLPostgreSQL JSON and JSONB
JSONB_SET_LAXPostgreSQLPostgreSQL JSON and JSONB
JSONB_STRIP_NULLSPostgreSQLPostgreSQL JSON and JSONB
JSONB_TYPEOFPostgreSQLPostgreSQL JSON and JSONB
JULIANDAYNativeNative date and time
LAGWindowRanking and navigation
LAST_DAYMySQL-styleDates, times, and calendars
LAST_INSERT_IDMySQL-styleSession state and named locks
LAST_INSERT_ROWIDNativeCompatibility placeholders
LAST_VALUEWindowRanking and navigation
LCASEMySQL-styleStrings and bytes
LCMPostgreSQLExact numeric operations
LEADWindowRanking and navigation
LEASTMySQL-styleConditional and scalar values
LEFTMySQL-styleStrings and bytes
LEFTPostgreSQLText and bytea
LENGTHNativeStrings and binary values
LENGTHPostgreSQLText and bytea
LNMySQL-styleNumeric and mathematical functions
LNPostgreSQLPostgreSQL mathematical functions
LOCALTIMEMySQL-styleClocks
LOCALTIMEPostgreSQLPostgreSQL clocks and temporal values
LOCALTIMESTAMPMySQL-styleClocks
LOCALTIMESTAMPPostgreSQLPostgreSQL clocks and temporal values
LOCATEMySQL-styleStrings and bytes
LOGMySQL-styleNumeric and mathematical functions
LOGPostgreSQLPostgreSQL mathematical functions
LOG10MySQL-styleNumeric and mathematical functions
LOG10PostgreSQLPostgreSQL mathematical functions
LOG2MySQL-styleNumeric and mathematical functions
LOWERNativeStrings and binary values
LPADMySQL-styleStrings and bytes
LPADPostgreSQLText and bytea
LTRIMNativeStrings and binary values
LTRIMPostgreSQLText and bytea
MAKE_DATEPostgreSQLPostgreSQL clocks and temporal values
MAKE_SETMySQL-styleStrings and bytes
MAKE_TIMEPostgreSQLPostgreSQL clocks and temporal values
MAKE_TIMESTAMPPostgreSQLPostgreSQL clocks and temporal values
MAKEDATEMySQL-styleDates, times, and calendars
MAKETIMEMySQL-styleDates, times, and calendars
MATCHMySQL-styleConversion and full-text syntax
MAXAggregateGrouped aggregates
MAXNativeConditional values
MD5MySQL-styleDigests, encryption, compression
MICROSECONDMySQL-styleDates, times, and calendars
MIDMySQL-styleStrings and bytes
MINAggregateGrouped aggregates
MINNativeConditional values
MIN_SCALEPostgreSQLExact numeric operations
MINUTEMySQL-styleDates, times, and calendars
MODMySQL-styleNumeric and mathematical functions
MODPostgreSQLExact numeric operations
MONTHMySQL-styleDates, times, and calendars
MONTHNAMEMySQL-styleDates, times, and calendars
NAME_CONSTMySQL-styleSession state and named locks
NORMALIZEPostgreSQLText and bytea
NOWMySQL-styleClocks
NOWPostgreSQLPostgreSQL clocks and temporal values
NTH_VALUEWindowRanking and navigation
NULLIFNativeConditional values
NUM_NONNULLSPostgreSQLConditional values
NUM_NULLSPostgreSQLConditional values
OCTMySQL-styleNumeric and mathematical functions
OCTET_LENGTHMySQL-styleStrings and bytes
OCTET_LENGTHPostgreSQLText and bytea
ORDMySQL-styleStrings and bytes
OVERLAYPostgreSQLText and bytea
PERIOD_ADDMySQL-styleDates, times, and calendars
PERIOD_DIFFMySQL-styleDates, times, and calendars
PG_BACKEND_PIDPostgreSQLCatalog and session helpers
PG_CLIENT_ENCODINGPostgreSQLCatalog and session helpers
PG_ENCODING_TO_CHARPostgreSQLCatalog and session helpers
PG_GET_CONSTRAINTDEFPostgreSQLCatalog and session helpers
PG_GET_EXPRPostgreSQLCatalog and session helpers
PG_GET_INDEXDEFPostgreSQLCatalog and session helpers
PG_GET_SERIAL_SEQUENCEPostgreSQLCatalog and session helpers
PG_GET_USERBYIDPostgreSQLCatalog and session helpers
PG_GET_VIEWDEFPostgreSQLCatalog and session helpers
PG_SLEEPPostgreSQLPostgreSQL clocks and temporal values
PG_TABLE_IS_VISIBLEPostgreSQLCatalog and session helpers
PIMySQL-styleNumeric and mathematical functions
PIPostgreSQLPostgreSQL mathematical functions
POSITIONMySQL-styleStrings and bytes
POSITIONPostgreSQLText and bytea
POWMySQL-styleNumeric and mathematical functions
POWPostgreSQLPostgreSQL mathematical functions
POWERMySQL-styleNumeric and mathematical functions
POWERPostgreSQLPostgreSQL mathematical functions
QUARTERMySQL-styleDates, times, and calendars
QUOTENativeStrings and binary values
QUOTE_IDENTPostgreSQLText and bytea
QUOTE_LITERALPostgreSQLText and bytea
QUOTE_NULLABLEPostgreSQLText and bytea
RADIANSMySQL-styleNumeric and mathematical functions
RADIANSPostgreSQLPostgreSQL mathematical functions
RANDMySQL-styleNumeric and mathematical functions
RANDOMNativeNumbers and conversion
RANDOM_BYTESMySQL-styleDigests, encryption, compression
RANKWindowRanking and navigation
REGEXP_COUNTPostgreSQLPostgreSQL regular expressions
REGEXP_INSTRMySQL-styleRegular expressions
REGEXP_INSTRPostgreSQLPostgreSQL regular expressions
REGEXP_LIKEMySQL-styleRegular expressions
REGEXP_LIKEPostgreSQLPostgreSQL regular expressions
REGEXP_REPLACEMySQL-styleRegular expressions
REGEXP_REPLACEPostgreSQLPostgreSQL regular expressions
REGEXP_SUBSTRMySQL-styleRegular expressions
REGEXP_SUBSTRPostgreSQLPostgreSQL regular expressions
RELEASE_ALL_LOCKSMySQL-styleSession state and named locks
RELEASE_LOCKMySQL-styleSession state and named locks
REPEATMySQL-styleStrings and bytes
REPEATPostgreSQLText and bytea
REPLACENativeStrings and binary values
REVERSEMySQL-styleStrings and bytes
REVERSEPostgreSQLText and bytea
RIGHTMySQL-styleStrings and bytes
RIGHTPostgreSQLText and bytea
ROUNDNativeNumbers and conversion
ROUNDMySQL-styleNumeric and mathematical functions
ROUNDPostgreSQLExact numeric operations
ROW_COUNTMySQL-styleSession state and named locks
ROW_NUMBERWindowRanking and navigation
RPADMySQL-styleStrings and bytes
RPADPostgreSQLText and bytea
RTRIMNativeStrings and binary values
RTRIMPostgreSQLText and bytea
SCALEPostgreSQLExact numeric operations
SCHEMAMySQL-styleSession state and named locks
SEC_TO_TIMEMySQL-styleDates, times, and calendars
SECONDMySQL-styleDates, times, and calendars
SESSION_USERMySQL-styleSession state and named locks
SESSION_USERPostgreSQLCatalog and session helpers
SET_BITPostgreSQLText and bytea
SET_BYTEPostgreSQLText and bytea
SHAMySQL-styleDigests, encryption, compression
SHA1MySQL-styleDigests, encryption, compression
SHA2MySQL-styleDigests, encryption, compression
SHA224PostgreSQLText and bytea
SHA256PostgreSQLText and bytea
SHA384PostgreSQLText and bytea
SHA512PostgreSQLText and bytea
SIGNMySQL-styleNumeric and mathematical functions
SIGNPostgreSQLExact numeric operations
SINMySQL-styleNumeric and mathematical functions
SINPostgreSQLPostgreSQL mathematical functions
SINDPostgreSQLPostgreSQL mathematical functions
SINHPostgreSQLPostgreSQL mathematical functions
SLEEPMySQL-styleSession state and named locks
SOUNDEXMySQL-styleStrings and bytes
SPACEMySQL-styleStrings and bytes
SPLIT_PARTPostgreSQLText and bytea
SQRTMySQL-styleNumeric and mathematical functions
SQRTPostgreSQLPostgreSQL mathematical functions
STARTS_WITHPostgreSQLText and bytea
STATEMENT_TIMESTAMPPostgreSQLPostgreSQL clocks and temporal values
STR_TO_DATEMySQL-styleDates, times, and calendars
STRCMPMySQL-styleStrings and bytes
STRFTIMENativeNative date and time
STRPOSPostgreSQLText and bytea
SUBDATEMySQL-styleDates, times, and calendars
SUBSTRNativeStrings and binary values
SUBSTRPostgreSQLText and bytea
SUBSTRINGMySQL-styleStrings and bytes
SUBSTRINGPostgreSQLText and bytea
SUBSTRING_INDEXMySQL-styleStrings and bytes
SUBTIMEMySQL-styleDates, times, and calendars
SUMAggregateGrouped aggregates
SYSDATEMySQL-styleClocks
SYSTEM_USERMySQL-styleSession state and named locks
TANMySQL-styleNumeric and mathematical functions
TANPostgreSQLPostgreSQL mathematical functions
TANDPostgreSQLPostgreSQL mathematical functions
TANHPostgreSQLPostgreSQL mathematical functions
TIMENativeNative date and time
TIME_FORMATMySQL-styleDates, times, and calendars
TIME_TO_SECMySQL-styleDates, times, and calendars
TIMEDIFFMySQL-styleDates, times, and calendars
TIMEOFDAYPostgreSQLPostgreSQL clocks and temporal values
TIMESTAMPADDMySQL-styleDates, times, and calendars
TIMESTAMPDIFFMySQL-styleDates, times, and calendars
TO_BASE64MySQL-styleStrings and bytes
TO_CHARPostgreSQLPostgreSQL clocks and temporal values
TO_DATEPostgreSQLPostgreSQL clocks and temporal values
TO_DAYSMySQL-styleDates, times, and calendars
TO_HEXPostgreSQLText and bytea
TO_JSONPostgreSQLPostgreSQL JSON and JSONB
TO_JSONBPostgreSQLPostgreSQL JSON and JSONB
TO_REGCLASSPostgreSQLCatalog and session helpers
TO_REGNAMESPACEPostgreSQLCatalog and session helpers
TO_SECONDSMySQL-styleDates, times, and calendars
TO_TIMESTAMPPostgreSQLPostgreSQL clocks and temporal values
TOTALAggregateGrouped aggregates
TRANSACTION_TIMESTAMPPostgreSQLPostgreSQL clocks and temporal values
TRANSLATEPostgreSQLText and bytea
TRIMNativeStrings and binary values
TRIM_SCALEPostgreSQLExact numeric operations
TRUNCPostgreSQLExact numeric operations
TRUNCATEMySQL-styleNumeric and mathematical functions
TYPEOFNativeStrings and binary values
UCASEMySQL-styleStrings and bytes
UNCOMPRESSMySQL-styleDigests, encryption, compression
UNCOMPRESSED_LENGTHMySQL-styleDigests, encryption, compression
UNHEXMySQL-styleStrings and bytes
UNISTRPostgreSQLText and bytea
UNIX_TIMESTAMPMySQL-styleDates, times, and calendars
UPPERNativeStrings and binary values
USERMySQL-styleSession state and named locks
USERPostgreSQLCatalog and session helpers
UTC_DATEMySQL-styleClocks
UTC_TIMEMySQL-styleClocks
UTC_TIMESTAMPMySQL-styleClocks
UUIDMySQL-styleUUIDs and network addresses
UUID_TO_BINMySQL-styleUUIDs and network addresses
VERSIONMySQL-styleSession state and named locks
VERSIONPostgreSQLCatalog and session helpers
WEEKMySQL-styleDates, times, and calendars
WEEKDAYMySQL-styleDates, times, and calendars
WEEKOFYEARMySQL-styleDates, times, and calendars
WIDTH_BUCKETPostgreSQLExact numeric operations
YEARMySQL-styleDates, times, and calendars
YEARWEEKMySQL-styleDates, times, and calendars
Function reference checked against engine source · e5e2eb2Edit the function reference ↗