小编DUn*_*wn1的帖子

如何替换 PostgreSQL 中的变量

给定的 Oracle 查询通过替换变量将数据插入表中。我如何在 PostgreSQL 中实现相同的目标?

INSERT INTO control_threshold (
    threshold_id, group_name, description, sql, low_value, high_value)
VALUES(
    threshold_seq.nextval, '&2', '&1',  TRIM('&5' || '&6' || '&7' || '&8' || '&9'),
    trim('&3'), trim('&4'));
Run Code Online (Sandbox Code Playgroud)

postgresql sqlplus psql

3
推荐指数
1
解决办法
2700
查看次数

我可以将 HSTORE 列更改为 JSON 数据类型吗?

有没有办法将现有的HSTORE数据类型列(具有数据)修改JSON为 Postgres 数据库中的数据类型?

postgresql hstore json

2
推荐指数
1
解决办法
561
查看次数

标签 统计

postgresql ×2

hstore ×1

json ×1

psql ×1

sqlplus ×1