RV: [Pgsql-ayuda] RV: function syb/pgsql

sandrigo lezcano psql@msa.com.py
Wed, 4 Jun 2003 10:01:45 -0500


> > puedes usar algo como:
> >
> > create domain t_guaranies as numeric(13,2);
>
> mmm.  puedo definir los checks tb
> dentro de los domain???  explico en sybase:

> t_estado_civil char check(@column in('1','2','3','4','5','6','7'))
>
segun esto:  ------
Compatibility
SQL99 defines CREATE DOMAIN, but says that the only allowed constraint type
is CHECK constraints. CHECK constraints for domains are not yet supported by
PostgreSQL
fuente:
http://www.postgresql.org/docs/view.php?version=7.3&idoc=0&file=sql-createdo
main.html

..parece q NO. tendre checkear en las definiciones de las estructuras de las
tablas...

salvo mejor parecer.  algun TIP???

sandrigo