Re: Date

From: "cristi" <cristi(at)dmhi(dot)ct(dot)ro>
To: <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Date
Date: 2002-04-04 05:07:00
Message-ID: 002801c1db96$8d5c5360$7201a8c0@dmhi.ct.ro
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice


----- Original Message -----
From: "Jason Friedman" <jason(at)powerpull(dot)net>
To: <pgsql-novice(at)postgresql(dot)org>
Sent: Wednesday, April 03, 2002 4:46 PM
Subject: Re: [NOVICE] Date

> So that I can have more information, please do:
>
> SELECT * FROM table LIMIT 50;
>
> Please put on extended display (\x) if your table is wider than the
> screen.
>
> Also, do a \d table

salt=> select ma,nu,i,co,o1,sc,mo,da from a where da='03-31-2002';

10772|Buzoianu |S |33012CD| 8| 1|S |03-30-2002
14111|Banica |Gh |33012CD| 5| 1|S |03-30-2002
9496|Seitasan |M |43113AE| 0| 1|S |03-30-2002
16891|Apostol |x |33012CD| 8| 1|S |03-30-2002
8086|Vaduva |M |33012CB| 8| 1|S |03-30-2002
9503|Tudose |Gh.|33012CB| 8| 1|S |03-30-2002
15837|Simionescu |I |33012CB| 0| 1|S |03-30-2002
11767|Petre |I |33012CB| 8| 1|S |03-30-2002
15026|Nitu | |33012CB| 0| 1|S |03-30-2002
15009|Niculita | |33012CB| 8| 2|S |03-30-2002
12493|Mustafa |I |33012CB| 8| 1|S |03-30-2002
2489|Milea |I |33012CB| 5| 1|S |03-30-2002
3360|Melnic |G |33012CB| 8| 1|S |03-30-2002
2447|Luta |N |33012CB| 8| 1|S |03-30-2002
11141|Ibram |F |33012CB| 8| 1|S |03-30-2002
15820|Dusea |Ion|33012CB| 0| 1|S |03-30-2002
15748|Coman |P |33012CB| 8| 1|S |03-30-2002
15437|Ciobanu |I. |33012CB| 8| 1|S |03-30-2002
2330|Catarama |T |33012CB| 8| 1|S |03-30-2002
2859|Burciu |Gh |33012CB| 0| 1|S |03-30-2002
15676|Bulmaga |I |33012CB| 8| 1|S |03-30-2002
(1808 rows)

ERROR: parser: parse error at or near "/"
salt=> \d a
Table = a
+----------------------------------+----------------------------------+-----
--+
| Field | Type |
Length|
+----------------------------------+----------------------------------+-----
--+
| ma | int4 |
4 |
| nu | varchar() |
15 |
| i | varchar() |
3 |
| pr | varchar() |
15 |
| co | varchar() |
7 |
| un | varchar() |
36 |
| di | varchar() |
36 |
| of | varchar() |
36 |
| lo | varchar() |
36 |
| de | varchar() |
36 |
| onn | int2 |
2 |
| mo | varchar() |
1 |
| sc | int2 |
2 |
| o1 | int2 |
2 |
| o2 | int2 |
2 |
| oa | int2 |
2 |
| da | date |
4 |
| dv | date |
4 |
| ov | time |
8 |
| dn | date |
4 |
| onv | time |
8 |
| op | int4 |
4 |
| v | varchar() |
1 |
+----------------------------------+----------------------------------+-----
--+
Indices: a_da
a_ma

salt=>

In response to

  • Date at 2002-04-03 06:18:58 from cristi voinicaru

Browse pgsql-novice by date

  From Date Subject
Next Message Josh Berkus 2002-04-04 05:29:06 Re: Date
Previous Message Josh Berkus 2002-04-04 02:05:28 Re: Transactions in Postgres