pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Difference between VARCHARs
2+ messages / 2 participants
[nested] [flat]

* Difference between VARCHARs
@ 2002-03-11 15:28  Robert.Farrugia@go.com.mt
  0 siblings, 1 reply; 2+ messages in thread

From: Robert.Farrugia@go.com.mt @ 2002-03-11 15:28 UTC (permalink / raw)
  To: pgsql-admin

What difference does it make between declaring a field as VARCHAR(N) where
N is an integer and declaring it just VARCHAR without giving the length ?

Regards
Robert




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Difference between VARCHARs
@ 2002-03-11 19:04  Peter Eisentraut <peter_e@gmx.net>
  parent: Robert.Farrugia@go.com.mt
  0 siblings, 0 replies; 2+ messages in thread

From: Peter Eisentraut @ 2002-03-11 19:04 UTC (permalink / raw)
  To: Robert.Farrugia@go.com.mt; +Cc: pgsql-admin

Robert.Farrugia@go.com.mt writes:

> What difference does it make between declaring a field as VARCHAR(N) where
> N is an integer and declaring it just VARCHAR without giving the length ?

The former has a length limit, the latter doesn't.

http://www.us.postgresql.org/users-lounge/docs/7.2/postgres/datatype-character.html

-- 
Peter Eisentraut   peter_e@gmx.net




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2002-03-11 19:04 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-03-11 15:28 Difference between VARCHARs Robert.Farrugia@go.com.mt
2002-03-11 19:04 ` Peter Eisentraut <peter_e@gmx.net>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox