Fungsi SQL
Dokumentasi lengkap 1002 fungsi SQL untuk berbagai database dengan syntax, parameter, dan contoh penggunaan.
PostgreSQL
183 fungsi
Database open-source yang powerful dan populer
DuckDB
175 fungsi
Database analitik in-process yang cepat
Snowflake
224 fungsi
Cloud data warehouse untuk enterprise
BigQuery
220 fungsi
Data warehouse serverless dari Google Cloud
MySQL
200 fungsi
Database relasional open-source yang populer
Semua Fungsi
Menampilkan 24 dari 1002 fungsi
TIMESTAMP_ADD
Adds a time interval to a TIMESTAMP value. The result remains in UTC.
TIMESTAMPTIMESTAMP_DIFF
Calculates the difference between two TIMESTAMP values in the specified unit. Most accurate for measuring absolute durations.
INT64TIMESTAMP_MICROS
Mengkonversi Unix timestamp (microseconds) ke TIMESTAMP.
TIMESTAMPTIMESTAMP_MILLIS
Mengkonversi Unix timestamp (milliseconds) ke TIMESTAMP.
TIMESTAMPTIMESTAMP_SECONDS
Mengkonversi Unix timestamp (seconds) ke TIMESTAMP.
TIMESTAMPTIMESTAMP_SUB
Subtracts a time interval from a TIMESTAMP value. The inverse of TIMESTAMP_ADD.
TIMESTAMPTIMESTAMP_TRUNC
Truncates a TIMESTAMP to the specified granularity. Supports timezone for accurate local-time results.
TIMESTAMPTIMEZONE
Mengkonversi timestamp ke timezone tertentu. Equivalent dengan AT TIME ZONE operator.
timestamp/timestamptzTIME_ADD
Adds a time interval to a TIME value. Useful for work-hour calculations and scheduling.
TIMETIME_DIFF
Calculates the difference between two TIME values in the specified unit.
INT64TIME_FORMAT
Formats a TIME value into a string according to the specified format. Similar to DATE_FORMAT but designed specifically for time values.
VARCHARTIME_SLICE
Membagi waktu ke dalam buckets/intervals dengan panjang tertentu. Berguna untuk time-series bucketing.
DATE/TIMESTAMPTIME_SUB
Subtracts a time interval from a TIME value. The inverse of TIME_ADD.
TIMETIME_TO_SEC
Converts a TIME value to the total number of seconds. The inverse of SEC_TO_TIME().
INTTIME_TRUNC
Truncates a TIME value to the specified granularity (MICROSECOND, MILLISECOND, SECOND, MINUTE, HOUR).
TIMETODAY
Mengembalikan tanggal hari ini. Fungsi DuckDB-specific yang equivalent dengan CURRENT_DATE.
DATETO_ASCII
Mengkonversi text ke ASCII, mengganti karakter non-ASCII dengan equivalent terdekat. Berguna untuk normalisasi.
textTO_BASE
Mengkonversi angka integer ke representasi string dalam base tertentu (2-36).
VARCHARTO_BINARY
Mengkonversi string ke tipe BINARY.
BINARYTO_BOOLEAN
Mengkonversi nilai ke tipe BOOLEAN.
BOOLEANTO_CHAR
Mengkonversi tanggal, timestamp, atau angka ke string dengan format tertentu. Sangat fleksibel untuk formatting output.
textTO_CHAR
Mengkonversi nilai ke string dengan format opsional.
VARCHARTO_CODE_POINTS
Converts a STRING or BYTES value into an array of code points (Unicode code points for STRING, values 0-255 for BYTES).
ARRAY<INT64>TO_DATE
Mengkonversi string atau timestamp ke tipe DATE.
DATE