How to run a script with Query Tool?

Поиск
Список
Период
Сортировка
От Richard Bernstein
Тема How to run a script with Query Tool?
Дата
Msg-id CAKXm1c1TRgjcTeyM1sJzqt2L_Lp+7-v86S0YoVwX-95WwVas-Q@mail.gmail.com
обсуждение исходный текст
Ответы Re: How to run a script with Query Tool?  ("David G. Johnston" <david.g.johnston@gmail.com>)
Re: How to run a script with Query Tool?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-novice
I have a script that I need to run. The SQL script first creates a database called sampledb.
CREATE DATABASE `sampledb` 
I read in the docs that to start the Query Tool I need to pick Query Tool from the Tools menu. But the Query Tool is greyed out unless I have already chosen a database. I am concerned about running the script (which creates a database) since I am already in a database. Seems illogical. Can someone confirm that I can run my script in any of the existing databases with causing a major issue for myself? 

В списке pgsql-novice по дате отправления:

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: select from one table with help of another table
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: How to run a script with Query Tool?