Re: [SQL] '13 months ago'::reltime

2001-05-04 Thread Christopher Sawtell
On Friday 04 May 2001 06:32, you wrote: > Type reltime is old and deprecated. Don't use it. What should we be using instead? -- Sincerely etc., NAME Christopher Sawtell CELL PHONE 021 257 4451 ICQ UIN45863470 EMAIL csawtell @ xtra . co . nz CNOTES ftp://ftp.funet.fi/pu

Re: [SQL] Dateadd

2001-05-04 Thread Cliff Crawford
* Ligia Pimentel <[EMAIL PROTECTED]> menulis: > I need to know if there is a sql function implemented in postgres that gives > me a date plus any number of days, months or years (the traditional dateadd > function) or how to do it in sql? cepat=# select '01-01-00'::date + '2 months 10 days'::inte

Re: [SQL] create table

2001-05-04 Thread Martín Marqués
On Dom 29 Abr 2001 22:34, LeoDeBeo wrote: > can anybody explain me the syntax of Create Table documentation?? > > CREATE [ TEMPORARY | TEMP ] TABLE table ( > column type > [ NULL | NOT NULL ] [ UNIQUE ] [ DEFAULT value ] > [ column_constraint_clause | PRIMARY KEY } [ ... ]

[SQL] Re: create table

2001-05-04 Thread Joel Burton
On Sun, 29 Apr 2001, LeoDeBeo wrote: > can anybody explain me the syntax of Create Table documentation?? This doc is much improved in the more recent PG create table help. Check out the online 7.1 Reference Manual, and there's a much nicer CREATE TABLE grammar. -- Joel Burton <[EMAIL PROTEC

Re: [SQL] create table

2001-05-04 Thread Tom Lane
LeoDeBeo <[EMAIL PROTECTED]> writes: > i don't understand what the curly brace means after PRIMARY KEY (where is > the other matching brace? Typo. Try more recent versions of the docs. 7.1 says CREATE [ TEMPORARY | TEMP ] TABLE table_name ( { column_name type [ column_constraint [ ... ]

Re: [SQL] Re: Use of the LIMIT clause ?

2001-05-04 Thread Bruce Momjian
[ Charset ISO-8859-1 unsupported, converting... ] > On Mon, Mar 12, 2001 at 09:21:58PM -0500, Tom Lane wrote: > > Spy <[EMAIL PROTECTED]> writes: > > > Tom Lane a ?crit : > > >> Is that actually how MySQL interprets two parameters? We treat them > > >> as count and offset respectively, which defi

Re: [SQL] Dateadd

2001-05-04 Thread Stephan Szabo
On Wed, 2 May 2001, Ligia Pimentel wrote: > I need to know if there is a sql function implemented in postgres that gives > me a date plus any number of days, months or years (the traditional dateadd > function) or how to do it in sql? Just add a date and an interval. Something like: date + '1

[SQL] create table

2001-05-04 Thread LeoDeBeo
can anybody explain me the syntax of Create Table documentation?? CREATE [ TEMPORARY | TEMP ] TABLE table ( column type [ NULL | NOT NULL ] [ UNIQUE ] [ DEFAULT value ] [ column_constraint_clause | PRIMARY KEY } [ ... ] ] [ , ... ] [ , PRIMARY KEY ( column

[SQL] Dateadd

2001-05-04 Thread Ligia Pimentel
I need to know if there is a sql function implemented in postgres that gives me a date plus any number of days, months or years (the traditional dateadd function) or how to do it in sql? Thanks in advance for any help Ligia ---(end of broadcast)

Re: [SQL] "correct" sorting.

2001-05-04 Thread Jeff Self
You're trying to compare apples and oranges. Since the field is of type text, it will sort by text. Therefore, the result will be 1 then 10 then 1a and so forth. It is sorting based on ASCII. The only way to get it to sort in proper numerical order is to make the field a numeric field. But of cour

[SQL] Re: Dateadd

2001-05-04 Thread Vivek Khera
> "LP" == Ligia Pimentel <[EMAIL PROTECTED]> writes: LP> I need to know if there is a sql function implemented in postgres LP> that gives me a date plus any number of days, months or years (the LP> traditional dateadd function) or how to do it in sql? Here's what I use: select CURRENT_DATE

Re: [SQL] How to encode and decode password in pgsql !!

2001-05-04 Thread D'Arcy J.M. Cain
Thus spake Subhramanya Shiva > i could not find chkpass in pgsql datatypes ... > it is giving error called : > > Unable to locate type name chkpass in catalog. > > what shall i do ?? You need the code that I just committed. You can get the files from http://www.ca.postgresql.org/cgi/cvsweb.cg