I'm trying to build a SQL script that will create a database if it
doesn't already exist. I've looked everywhere and haven't been able to
find anything. Am I missing something? Thanks.
Chris Sano wrote:
> I'm trying to build a SQL script that will create a database if it
> doesn't already exist. I've looked everywhere and haven't been able to
> find anything. Am I missing something? Thanks.
SELECT * FROM pg_database will tell you what databases exist.
Есть вопросы? Напишите нам!
Соглашаюсь с условиями обработки персональных данных
✖
By continuing to browse this website, you agree to the use of cookies. Go to Privacy Policy.