我创建了WSI架构,并尝试在该查询下创建表,我不断收到以下错误。我试图将搜索路径设置为新架构但我仍然遇到同样的错误。
ERROR: no schema has been selected to create in
SQL state: 3F000
我的尝试和输出如下所示
答案 0 :(得分:0)
我怀疑它是导致问题的大写架构名称。
test=# set search_path to WSI;
SET
test=# show search_path;
search_path
-------------
wsi
(1 row)
test=# create table myt (id integer);
ERROR: no schema has been selected to create in
LINE 1: create table myt (id integer);
^
test=# set search_path to "WSI";
SET
test=# show search_path;
search_path
-------------
"WSI"
(1 row)
test=# create table myt (id integer);
CREATE TABLE