From: | "Ron de Jong" <radejong(at)planet(dot)nl> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Is there no "DESCRIBE <TABLE>;" on PGSQL? help!!! |
Date: | 2001-10-20 15:24:39 |
Message-ID: | 9qs50m$pdf$1@reader07.wxs.nl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Not even close!
<None> wrote in message news:3bd02277$1_4(at)Usenet(dot)com(dot)(dot)(dot)
> Hello
>
>
> psql <dbname>
>
> \dt employee
>
> Should do the trick
>
>
>
>
>
> "Ron de Jong" <radejong(at)planet(dot)nl> wrote in
> news:9qp2et$i7q$1(at)reader05(dot)wxs(dot)nl:
>
> > Any idea to get a human readable list with column descriptions like
> > type,size,key,default,null.
> > It would be nice if it would look simular to the mysql variant:
> >
> > mysql> describe employee;
> > +-----------+----------+------+-----+---------+----------------+
> >| Field | Type | Null | Key | Default | Extra |
> >| +-----------+----------+------+-----+---------+----------------+ Id
> >| | int(11) | | PRI | NULL | auto_increment | FirstName |
> >| char(30) | | MUL | | | LastName |
> >| char(30) | | | | | Infix |
> >| char(10) | YES | | NULL | | Address1 |
> >| char(30) | YES | | NULL | | PostCode |
> >| char(10) | YES | | NULL | | Town | int(11)
> >| | YES | | NULL | |
> >| +-----------+----------+------+-----+---------+----------------+
> >
> > Cheers, Ron.
> >
> >
> >
> >|int(11) | YES |
> >|NULL
> >|
> >|   ;
> >|<BR>+-----------+----------+------+-----+---------+----------------+</FO
> >|NT></FONT></DIV>
> > <DIV><FONT face=Arial size=2><FONT face="Courier
> > New"></FONT></FONT> </DIV> <DIV><FONT face=Arial size=2><FONT
> > face="Courier New">Cheers,
> > Ron.<BR><BR></DIV></FONT></FONT></BODY></HTML>
> >
> > Attachment decoded: untitled-3.htm
> > ------=_NextPart_000_00A9_01C158A1.1FB50320--
>
>
> Posted Via Usenet.com Premium Usenet Newsgroup Services
> ----------------------------------------------------------
> ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
> ----------------------------------------------------------
> http://www.usenet.com
From | Date | Subject | |
---|---|---|---|
Next Message | Ron de Jong | 2001-10-20 16:02:31 | Re: Is there no "DESCRIBE <TABLE>;" on PGSQL? help!!! |
Previous Message | Peter Eisentraut | 2001-10-20 11:46:23 | Re: Detecting glibc getopt? |