Mengembalikan nama tipe data dari nilai. Berguna untuk debugging dan introspection.
regtypeDiperbarui: 12 Jul 2026PG_TYPEOF(any)Nilai yang dicek tipenya
1 SELECT PG_TYPEOF(123), PG_TYPEOF('hello'), PG_TYPEOF(NOW());
Mengecek tipe berbagai nilai.
| pg_typeof | pg_typeof | pg_typeof |
|---|---|---|
| integer | text | timestamp with time zone |
Sudah paham PG_TYPEOF? Latih langsung di browser
Latihan interaktif, langsung di browser.