📜  postgres 为主键添加前缀 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:18.099000             🧑  作者: Mango

代码示例1
CREATE TRIGGER test BEFORE INSERT ON name_of_table
FOR EACH ROW SET row_nanme = CONCAT('prefix-', primary_key);