21 Şubat 2021 Pazar

Sütun Tipleri - OID

Giriş
Açıklaması şöyle.
A column of type Oid is just a reference to the binary contents which are actually stored in the system's pg_largeobject table. In terms of storage, an Oid a 4 byte integer. On the other hand, a column of type bytea is the actual contents.
PG_LARGEOBJECT Sistem Tablosu yazısına bakabilirsiniz.

Örnek
Eğer OID tipindeki sütunları görmek istersek şöyle yaparız
SELECT * FROM information_schema.columns WHERE data_type = 'oid';

Hiç yorum yok:

Yorum Gönder