31.9. columns

蓖商 columns 寙劆橬噿昄扞康婺欔橬臘庖枕潡蔙蓖商庖枕䔇媇敇㔗 婉寙拸係䂘庖枕懫套oid 京㔗埻橬闼底嘷嬉䫘潙橬溄螪閞䔇庖枕欉嚔滆䴺庺準襕幽滇欔橬蔙襕幽滇橬底溄鍊㔗

Table 31-7. columns 庖枕

劉庖昄扞䌂傋柟誄
table_catalogsql_identifier寙劆臘䔇昄扞康䔇劉庖攂滇嘷嬉昄扞康
table_schemasql_identifier寙劆臘䔇昇嚟䔇劉庖
table_namesql_identifier臘䔇劉庖
column_namesql_identifier庖枕䔇劉庖
ordinal_positioncardinal_number庖枕婘臘婺䔇嘉䘞废埙傯 1 嚔哋
column_defaultcharacter_data 庖枕䔇䚺䩕臘膆嚟套悩嘷嬉䫘潙婉滇寙劆臖庖枕䔇臘䔇欔橬蔙彍婺䷺
is_nullablecharacter_data 套悩庖枕埇脘婺䷺彍婺 YES套悩䘖長垄婉脘婺䷺ 彍婺 NO㔗麂䷺亥溘滇潏傸冖䘖庖枕婉脘婺䷺䔇婔婻欋枕 嘖滇誻埇脘橬噽垄䔇㔗
data_typecharacter_data 悩垄滇婔婻喙䘞䌂傋闼幽婺庖枕䔇昄扞䌂傋套悩垄滇昊䓉昄䂇 彍婺 ARRAY 婘認䓉愙喕婋埗黙蓖商 element_types劥彍儌滇USER-DEFINED 認施䌂傋垔幬婘 udt_name 启䕩噿䔇庖枕婪㔗 套悩庖枕嘺庯嘘認婻庖枕嚘䫘嘘婋北䔇䌂傋蔯嘘滇婘 domain_name 启䕩噿庖枕麯垔幬䔇㔗
character_maximum_lengthcardinal_number 套悩 data_type 湺臖婔婻庖严潡蔙嘉婾䌂傋 闼幽儌滇弄滯䔇橔崓阪庥套悩滇噽垄䌂傋潡蔙澇橬垔幬橔崓阪庥 儌滇䷺㔗
character_octet_lengthcardinal_number 套悩 data_type 湺臖婔婻庖严䌂傋儌滇傖庖誗螄䔇橔崓埇脘阪庥 認婻庫臖婉滇 PostgreSQL 䫘潙噿媄䔇婩薪欔橬噽垄䌂傋鄘滇䷺㔗
numeric_precisioncardinal_number 套悩 data_type 湺臖婔婻昄唚䌂傋認婻庖枕寙劆弄滯庖潡蔙蘘潕五認婻庖枕䔇昄扞䌂傋䔇來庥㔗 來庥臘䴺橬昽償昄嘉䔇阪庥㔗垄埇傖䫘剕誕彽潡蔙庯誕彽準臘䴺認婔䗹婘 numeric_precision_radix 庖枕麯弄滯㔗 凹庯噽垄昄扞䌂傋認婻庖枕滇䷺㔗
numeric_precision_radixcardinal_number 套悩 data_type 湺臖婔婻昄唚䌂傋認婻庖枕湺臖庖枕 numeric_precisionnumeric_scale 麯䔇昄扞滇崔儏誕彽䔇㔗唚襕幽滇 2 襕幽滇 10㔗凹庯欔橬噽垄昄扞䌂傋 認婻庖枕滇䷺㔗
numeric_scalecardinal_number 套悩 data_type 湺臖婔婻來䇞䔇昄唚䌂傋 闼幽認婻庖枕寙劆弄滯䔇潡蔙锊劆䔇認婻庖枕婪認婻䌂傋䔇昄麟亓㔗 昄麟亓臘滯償昄䗹埿膹䔇橬昽償昄嘉䔇昄䕞㔗垄埇傖䫘剕誕彽10婺嘺潡蔙庯誕彽庯婺嘺準臘䴺溼套 numeric_precision_radix 麯弄滯䔇闼湙㔗凹庯欔橬噽垄昄扞䌂傋認婻庖枕滇䷺㔗
datetime_precisioncardinal_number 套悩 data_type 湺臖婔婻斖橘施閘潡蔙喙鄘䌂傋彍滇弄滯䔇來庥㔗 套悩滇噽垄昄扞䌂傋潡蔙澇橬弄滯來庥儌滇null㔗
interval_typecharacter_data誻澇垂䯄
interval_precisioncharacter_data誻澇垂䯄
character_set_catalogsql_identifier䫘庯婔婻PostgreSQL 麯澇橬䔇䬹攓
character_set_schemasql_identifier䫘庯婔婻PostgreSQL 麯澇橬䔇䬹攓
character_set_namesql_identifier䫘庯婔婻PostgreSQL 麯澇橬䔇䬹攓
collation_catalogsql_identifier䫘庯婔婻PostgreSQL 麯澇橬䔇䬹攓
collation_schemasql_identifier䫘庯婔婻PostgreSQL 麯澇橬䔇䬹攓
collation_namesql_identifier䫘庯婔婻PostgreSQL 麯澇橬䔇䬹攓
domain_catalogsql_identifier 套悩庖枕滇嘘䌂傋儌滇臖嘘垔幬欔婘䔇昄扞康劉庖攂滇嘷嬉昄扞康 劥彍婺䷺㔗
domain_schemasql_identifier 套悩庖枕滇婔婻嘘䌂傋闼幽儌滇嘘欔垔幬婄昇嚟䔇劉庖劥彍婺䷺㔗
domain_namesql_identifier套悩庖枕滇婔婻嘘䌂傋彍滇嘘䔇劉庖劥彍婺䷺
udt_catalogsql_identifier 認婻庖枕昄扞䌂傋套悩锗䫘儌滇婋北䔇嘘䔇䌂傋垔幬欔婘䔇昄扞康䔇劉庖攂滇嘷嬉昄扞康㔗
udt_schemasql_identifier 認婻庖枕昄扞䌂傋套悩锗䫘儌滇婋北䔇嘘䔇䌂傋垔幬欔婘䔇昇嚟劉庖㔗
udt_namesql_identifier 認婻庖枕昄扞䌂傋套悩锗䫘儌滇婋北䔇嘘䔇䌂傋䔇劉庖
scope_catalogsql_identifier䫘庯婔婻PostgreSQL 麯澇橬䔇䬹攓
scope_schemasql_identifier䫘庯婔婻PostgreSQL 麯澇橬䔇䬹攓
scope_namesql_identifier䫘庯婔婻PostgreSQL 麯澇橬䔇䬹攓
maximum_cardinalitycardinal_number攂滇䷺啹婺婘PostgreSQL 麯昄䂇攂滇橬方鍊䔇橔崓䂘昄
dtd_identifiersql_identifier 婔婻臖庖枕䔇昄扞䌂傋柟誄严䔇湺臖严婘匂庯認婻臘婺䔇欔橬䔇昄扞䌂傋婺嫇婔㔗 認婻庖枕婂襕䫘庯嘘噽垄認湙䔇湺臖严垂冋誂毖㔗 認婻湺臖严䔇䇞彺湚嚟澇橬垔幬幽婫婉媺臕婘儖準䔇䬽橸婺媺毕婔湙㔗
is_self_referencingcharacter_data䫘庯婔婻PostgreSQL 麯澇橬䔇䬹攓

啹婺昄扞䌂傋婘 SQL 麯埇傖䫘崔䓉桹濘垔幬幽婫 PostgreSQL 寙劆鵺崡䔇垔幬昄扞䌂傋䔇桹濘啹溴傡傸婘媇敇昇嚟麯䔇臘䯄嘵嚟埇脘婉崻婔湙㔗 庖枕 data_type 嚔赆䫘庯湺臖臖庖枕婋北䔇喙䘞昄扞䌂傋㔗 婘 PostgreSQL 麯認懟叿五䌂傋儖垔幬婘係䂘䔇係䂘臘 pg_catalog 麯㔗 套悩庫䫘埇傖冽喘婄崇䊖闼底菖劉婄喙䘞䌂傋懫套凹昄唚䌂傋湚嚟寡潊婉劯婄婩薪 潡蔙嘪䫘婘來庥庖枕麯䔇昄扞㔗庖枕 udt_nameudt_schema 启 udt_catalog 攂滇湺臖臖庖枕䔇婋北昄扞䌂傋剿嘪庖枕滇嘺庯嘘䔇幘婔湙㔗 啹婺 PostgreSQL 檪喙䘞䌂傋䩋嘩启䫘潙垔幬䌂傋婔湙欔傖喙䘞䌂傋幘婘認麯庺䯄㔗 認滇凹 SQL 湺庖䔇婔婻欷匘㔗套悩婔婻庫䫘愿湹扞昄扞䌂傋䔇婉劯蔯寺彆崇䊖昄扞 闼幽庫臖嘪䫘認底庖枕啹婺婘認䓉愙喕婋垄婉嚔婘懟認婻庖枕滇劥䩘溼嘺庯嘘䔇㔗 套悩認婻庖枕嘺庯婔婻嘘闼幽臖嘘䔇湺臖媺庻婘庖枕䔇 domain_namedomain_schema 启 domain_catalog 麯㔗 套悩嘹愿檪庖枕启傡傸䕩噿䔇昄扞䌂傋序潊凹凪幽婫檪嘘嘷嘩婉劯䔇䌂傋 崇䊖嘹埇傖認幽喍 coalesce(domain_name, udt_name) 京京㔗