Re: [Novice] Create Table

From: Jason Earl <jason(dot)earl(at)simplot(dot)com>
To: <cgoodfellow(at)tealuxe(dot)com>
Cc: <pgsql-novice(at)postgresql(dot)org>
Subject: Re: [Novice] Create Table
Date: 2002-02-11 16:50:57
Message-ID: 87heoogdxq.fsf@npa01zz001.simplot.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice


Have you tried simply typing in something like this:

CREATE TABLE my_table (
id SERIAL NOT NULL PRIMARY KEY,
column1 int,
column2 text
);

What sort of errors are you getting?

You can see the full syntax for the create statement with a simple:

\help create table

on the command line.

Jason

"Christopher A. Goodfellow" <cgoodfellow(at)tealuxe(dot)com> writes:

> Hello All,
>
> I am a real novice to postgresql and am having trouble creating a new
> table in my existing database through the psql monitor.
>
> I have read the programmers guide, the create table syntax, and searched
> for some examples but with no luck. Are there any good examples of step by
> step how to create a new table?
>
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Josh Berkus 2002-02-11 16:54:15 Re: [Novice] Create Table
Previous Message Josh Berkus 2002-02-11 16:41:30 Re: Triggers