我正在從一個表中獲取數據並將其插入另一個表的PostgreSQL表上工作。 我創建一個表: create table temp_appearance (firstname text, lastname text, position text, media text);
並用數據填充它。 然後,我創建了一個新表: create table actors (id serial primary ke
我有一個像 create or replace function getalltypes(name character varying(100))
returns setof docs as $BODY$
begin
perform c.contenttypename from conttype c;
end;
$BODY$ LANGUAGE PLPGSQL;
文檔Postgre
我正在試驗postgres jsonb列類型,迄今爲止很好。我使用 一個常見的查詢是這樣的: select count(*) from jsonbtest WHERE attributes @> '{"City":"Mesa"}';
如何扭轉?是否有不同的操作員,或者是否只是用作 select count(*) from jsonbtest WHERE NOT attributes @> '{