Fungsi untuk manipulasi teks dan karakter. Temukan semua 48 fungsi string di BigQuery lengkap dengan syntax, contoh, dan penjelasan bahasa Indonesia.
48 fungsi string di BigQuery
← Semua fungsi BigQueryReturns the ASCII value (code point) of the first character in the string.
INT64Mengembalikan jumlah bytes dari STRING atau BYTES value.
INT64Returns the number of characters in a string. An alias for LENGTH, available for standard SQL compatibility.
INT64Converts a Unicode code point value into a string character. The inverse of the ASCII function.
STRINGConverts an array of code points (extended ASCII 0–255) into BYTES.
BYTESConverts an array of Unicode code points into a STRING.
STRINGConcatenates two or more strings into one. A foundational string concatenation function in BigQuery that supports multiple data types.
STRINGChecks whether a string contains a specified substring. Case-insensitive and supports JSON structures.
BOOLChecks whether a string ends with a specified suffix. Returns a boolean.
BOOLMenghitung fingerprint menggunakan algoritma FarmHash. Sangat cepat dan cocok untuk BigQuery.
INT64Formats values into a string based on a format string (similar to printf). Supports a wide range of format specifiers.
STRINGMenghasilkan UUID (Universally Unique Identifier) versi 4 secara random.
STRINGCapitalizes the first letter of each word and lowercases the rest. Title case transformation.
STRINGFinds the position of a substring within a string. Supports searching from a specific position and locating the nth occurrence.
INT64Extracts a specified number of characters from the left (beginning) of a string. A more readable shorthand than SUBSTR for extracting leading characters.
STRINGReturns the number of characters in a string. For BYTES, returns the number of bytes.
INT64Converts all characters in a string to lowercase. Supports Unicode characters.
STRINGPads the left side of a string with characters until it reaches a specified length. Left padding.
STRINGRemoves characters from the left side (beginning) of a string. Left trim for leading characters.
STRINGMenghitung MD5 hash dari input. Return BYTES.
BYTESNormalizes a Unicode string to a canonical form. Useful for consistent string comparisons across different Unicode representations.
STRINGNormalizes a Unicode string and applies case-folding for correct Unicode-aware case-insensitive comparisons.
STRINGReturns TRUE if the value matches the regular expression. Useful for pattern matching and format validation.
BOOLExtracts the first substring that matches the regular expression. If the pattern has a capturing group, returns that group instead.
STRINGExtracts all substrings that match the regular expression and returns them as an array.
ARRAY<STRING>Returns the position (1-based) of the substring that matches the regular expression. Returns 0 if there is no match.
INT64Replaces all substrings that match the regular expression with a replacement string. Supports backreferences.
STRINGAlias for REGEXP_EXTRACT. Extracts the substring that matches the regular expression.
STRINGRepeats a string n times. Useful for generating patterns.
STRINGReplaces all occurrences of a substring with a new string. Replacement is case-sensitive.
STRINGReverses the order of characters in a string. The first character becomes the last and vice versa.
STRINGExtracts a specified number of characters from the right (end) of a string. A more readable shorthand for extracting trailing characters.
STRINGPads the right side of a string with characters until it reaches a specified length. Right padding.
STRINGRemoves characters from the right side (end) of a string. Right trim for trailing characters.
STRINGSafely converts a BYTES value to a STRING, replacing any invalid UTF-8 characters with the Unicode replacement character instead of raising an error.
STRINGMengembalikan email address dari user yang menjalankan query.
STRINGMenghitung SHA-1 hash dari input. Return BYTES.
BYTESMenghitung SHA-256 hash dari input. Aman untuk kriptografi.
BYTESMenghitung SHA-512 hash dari input. Hash paling kuat di keluarga SHA-2.
BYTESSplits a string into an array based on a delimiter. Very useful for parsing CSV-style data.
ARRAY<STRING>Checks whether a string begins with a specified prefix. Returns a boolean.
BOOLFinds the first position of a substring within a string. A simplified version of INSTR.
INT64Extracts a portion of characters from a string starting at a specified position. An alias for SUBSTRING, highly useful for data extraction and parsing.
STRINGExtracts a portion of characters from a string. Identical to SUBSTR, available for standard SQL compatibility.
STRINGConverts a STRING or BYTES value into an array of code points (Unicode code points for STRING, values 0-255 for BYTES).
ARRAY<INT64>Replaces each character from the source character set with the corresponding character in the target character set. Character-level translation.
STRINGRemoves characters from the beginning and end of a string. By default, removes whitespace.
STRINGConverts all characters in a string to uppercase. Supports Unicode characters.
STRING