JSON

LAX_INT64

BigQueryBigQuery

Mengkonversi JSON value ke INT64 dengan konversi yang fleksibel.

Tipe hasil: INT64Diperbarui: 7 Jan 2026

Syntax

SQL
LAX_INT64(json_expression)

Parameter

json_expressionJSONwajib

Nilai JSON untuk dikonversi

Contoh Penggunaan

Lax Int Conversion

SQL
1SELECT
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_intfrom_floatfrom_str
423100