Mengembalikan tipe dari nilai JSONB sebagai text. Versi JSONB dari JSON_TYPEOF. Possible values: 'object', 'array', 'string', 'number', 'boolean', 'null'.
textDiperbarui: 13 Jun 2026JSONB_TYPEOF(jsonb_value)Nilai JSONB yang dicek tipenya
1 SELECT 2 JSONB_TYPEOF('{}'::jsonb) AS object_type, 3 JSONB_TYPEOF('[]'::jsonb) AS array_type, 4 JSONB_TYPEOF('42'::jsonb) AS number_type;
Mengecek tipe dari berbagai nilai JSONB.
| object_type | array_type | number_type |
|---|---|---|
| object | array | number |
Sudah paham JSONB_TYPEOF? Latih langsung di browser
Latihan interaktif, langsung di browser.