JSON
BigQuery
LAX_INT64
Mengkonversi JSON value ke INT64 dengan konversi yang fleksibel.
Tipe hasil:
INT64Diperbarui: 7 Jan 2026Syntax
SQL
LAX_INT64(json_expression)Parameter
json_expressionJSONwajib
Nilai JSON untuk dikonversi
Contoh Penggunaan
Lax Int Conversion
SQL
1 SELECT 2 LAX_INT64(JSON '42') as from_int, 3 LAX_INT64(JSON '3.9') as from_float, 4 LAX_INT64(JSON '"100"') as from_str;
Konversi fleksibel ke integer.
Hasil
| from_int | from_float | from_str |
|---|---|---|
| 42 | 3 | 100 |