Unable to use crosstab in Postgres

后端 未结 3 744
北荒
北荒 2021-02-14 01:16

Postgres 9.2.1 on OSX 10.9.2.

If I run the following crosstab example query:

CREATE EXTENSION tablefunc; 

CREATE TABLE ct(id SERIAL, rowid TEXT, attribu         


        
3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-14 01:52

    You can change the first line into:

    CREATE EXTENSION IF NOT EXISTS tablefunc;
    

提交回复
热议问题