select trigger_name,
event_manipulation,
event_object_schema,
event_object_table,
action_order,
action_condition,
action_orientation,
action_timing,
action_reference_old_table,
action_reference_new_table
from information_schema.triggers
where event_object_table in ('main_table')
order by 1 collate "C", 2;
產生錯誤:
ERROR: 42804: collations are not supported by type integer
LINE 13: order by 1 collate "C", 2;
然而:
order by trigger_name collate "C", 2;很好。
在collate "C",2中,2指的是什么?
main_table 只是一個簡單的表,它有一些觸發器。
代碼來源:https ://git.postgresql.org/gitweb/?p=postgresql.git;a=blob_plain;f=src/test/regress/expected/triggers.out;h=cd812336f2c70b1703d546f850a270f797829130;hb=7103ebb7aae8ab8076b7e805f335ceb877
uj5u.com熱心網友回復:
您在錯誤訊息的第一行中有答案。1在沒有看到它與可以應用排序規則的文本列相關的情況下,它無法完成的 RDBMS 天數。
ERROR: 42804: collations are not supported by type integer
LINE 13: order by 1 collate "C", 2;
這,2只是按第 2 列排序的第二級。如果第 1 列中有相同的值,則這些行將按第 2 列排序。
這與
order by trigger_name collate "C",event_manipulation
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/467470.html
標籤:PostgreSQL
