Re: Dominios

From: "Jaime Casanova" <systemguards(at)gmail(dot)com>
To: "Daniel Carrero" <dxduke(at)gmail(dot)com>
Cc: postgres <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Re: Dominios
Date: 2006-06-06 00:39:42
Message-ID: c2d9e70e0606051739j1f24c761v629c77766c4ce98a@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

On 6/5/06, Daniel Carrero <dxduke(at)gmail(dot)com> wrote:
> Hola lister(at)s:
> Tengo una consulta, la documentacion en ingles no trae ejemplos del uso de
> Dominios, y queria ver si uds. pueden orietarme a conocer sus ventajas y las
> desventajas :D
> Espero que me ayuden
>

Bueno, yo al menos encontre este ejemplo en la documentacion ;)

CREATE DOMAIN us_postal_code AS TEXT
CHECK(
VALUE ~ '^\\d{5}$'
OR VALUE ~ '^\\d{5}-\\d{4}$'
);

--
Atentamente,
Jaime Casanova

"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs and the universe trying
to produce bigger and better idiots.
So far, the universe is winning."
Richard Cook

In response to

  • Dominios at 2006-06-05 21:53:13 from Daniel Carrero

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Zuleima Lara 2006-06-06 01:11:15 Exceptions
Previous Message Daniel Carrero 2006-06-05 21:53:13 Dominios