Create Database Question

Поиск
Список
Период
Сортировка
От Greg Quinn
Тема Create Database Question
Дата
Msg-id 001401c6f9e6$528eea90$6501a8c0@melt
обсуждение исходный текст
Ответы Re: Create Database Question  ("Shoaib Mir" <shoaibmir@gmail.com>)
Re: Create Database Question  (norman <norman_khine@yahoo.co.uk>)
Список pgsql-novice

I am trying to create a database with a table…

 

i.e

 

create database myNewDb;

 

CREATE TABLE servers (

    serverid character varying(60) NOT NULL,

    companyid character varying(60) NOT NULL,

    servername character varying(50) NOT NULL,

    companyname character varying(50) NOT NULL

) WITHOUT OIDS;

 

Cool. The problem is, if I run this SQL command, from within another database instance, it tries to create the table for that database, and not for the  myNewDb database.

How do I modify the query.

 

I know SQL Server has something like…

 

Using [myNewDb]

 

CREATE TABLE …

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

Предыдущее
От: norman
Дата:
Сообщение: Re: Multi table insert
Следующее
От: "Shoaib Mir"
Дата:
Сообщение: Re: Create Database Question