2017-04-06 196 views
0

WSIスキーマを作成しました。そのクエリの下にテーブルを作成しようとすると、以下のエラーが発生します。新しいスキーマへの検索パスを設定しようとしましたが、同じエラーが発生しています。PostgreSQLでテーブルを作成するためにスキーマを選択する方法

enter image description here

+0

SQLスクリプトと出力全体をイメージではなくテキストとしてコピー/貼り付けできますか? –

+0

申し訳ありませんが、私のスクリーンショットがスクリプトを表示していないことを認識しませんでした。 テーブルを作成するwsi.032616to032617_new(column1 varchar、userid varchar、cnt int); – Kaylee

答えて

0

以下のように

ERROR: no schema has been selected to create in 
SQL state: 3F000 

私の試みと出力は、私はそれが問題を引き起こしている大文字のスキーマ名である疑いがあります。

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 
+0

助けてくれてありがとう! – Kaylee