[Pgsql-ayuda] check char

sandrigo lezcano psql@msa.com.py
Thu, 5 Jun 2003 16:24:17 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_016E_01C32B7E.E9081300
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

mmm

au no entiendo bien el tema con los tipos char.

explico como lo entiendo yo:  quiero y defino un campo

tipo char asi:

planilla char NOT NULL default check(planilla in ('1','2','3'...))

o, ..tengo que repetir las comillas (esto es del PowerDesigner)

planilla char NOT NULL default check(planilla in (''1'',''2'',''3''...))


?????

pues ya visto mas de 2 msg's de Alvaro hablando de ese tema

tb he visto definiendo creo como:=20


planilla "char"  ..... o algo por estilo......



que confusion.!!!



____________________________________________________
Sandrigo Lezcano Jara             Asunci=F3n, Paraguay
usando______: Ret Hat 7.2 (Enigma) - Kernel 2.4.7-10=20
              PostgreSQL 7.1.3 - psqlODBC 7.02.00.01
migrando____: Sybase 6.5   al   PostgreSQL=20
front end___: PowerBuilder 6.5        =20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DICQ:143590717=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
____________________________________________________

------=_NextPart_000_016E_01C32B7E.E9081300
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>mmm</DIV>
<DIV>&nbsp;</DIV>
<DIV>au no entiendo bien el tema con los tipos char.</DIV>
<DIV>&nbsp;</DIV>
<DIV>explico como lo entiendo yo:&nbsp; quiero y defino un campo</DIV>
<DIV>&nbsp;</DIV>
<DIV>tipo char asi:</DIV>
<DIV>&nbsp;</DIV>
<DIV>planilla char NOT NULL default check(planilla in =
('1','2','3'...))</DIV>
<DIV>&nbsp;</DIV>
<DIV>o, ..tengo que repetir las comillas (esto es del =
PowerDesigner)</DIV>
<DIV>&nbsp;</DIV>
<DIV>planilla char NOT NULL default check(planilla in=20
(''1'',''2'',''3''...))</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>?????</DIV>
<DIV>&nbsp;</DIV>
<DIV>pues ya visto mas de 2 msg's de Alvaro hablando de ese tema</DIV>
<DIV>&nbsp;</DIV>
<DIV>tb he visto definiendo creo como: </DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>planilla "char"&nbsp; ..... o algo por estilo......</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>que confusion.!!!</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>____________________________________________________<BR>Sandrigo =
Lezcano=20
Jara&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;=20
Asunci=F3n, Paraguay<BR>usando______: Ret Hat 7.2 (Enigma) - Kernel =
2.4.7-10=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;=20
PostgreSQL 7.1.3 - psqlODBC 7.02.00.01<BR>migrando____: Sybase =
6.5&nbsp;&nbsp;=20
al&nbsp;&nbsp; PostgreSQL <BR>front end___: PowerBuilder=20
6.5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
<BR>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DICQ:143590717=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<BR>_________=
___________________________________________</DIV></BODY></HTML>

------=_NextPart_000_016E_01C32B7E.E9081300--