Re: Buen dia

From: MARIA ANTONIETA RAMIREZ SOLIS <maramirez(at)ulsaneza(dot)edu(dot)mx>
To: pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: Buen dia
Date: 2015-07-08 14:31:20
Message-ID: CALGh7EvZL-N8fPUCT3Yx-yUMV_P3g7UvwfOxJLvWNA5nmUkO5Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

entonces como le hago para que lo ponga como valor...
haber tengo una tabla en la que cree las columnas y solo les puse que
tuvieran de tipo character varying(100), porque razon me esta poniendo
*DEFAULT
NULL::character varying?, porque no lo tengo solo asi: *edicion character
varying(100) ?
otra pregunta en que me afecta tenerlo asi como lo muestra en la parte de
abajo?

edicion character varying(100) *DEFAULT NULL::character varying,*
electronica integer,
url character varying(300) DEFAULT NULL::character varying,
editorial character varying(100) DEFAULT NULL::character varying,
fecha timestamp without time zone,
area character varying(100) DEFAULT NULL::character varying,
idioma character varying(2) DEFAULT NULL::character varying,

El 7 de julio de 2015, 19:54, Guillermo E. Villanueva <
guillermovil(at)gmail(dot)com> escribió:

> cuidado, está poniendo 'NULL' entre comillas simples! osea la cadena
> 'NULL' y no la ausencia de valor
>
> El 7 de julio de 2015, 15:10, Jaime Casanova <jaime(at)2ndquadrant(dot)com>
> escribió:
>
>> 2015-07-06 15:44 GMT-05:00 MARIA ANTONIETA RAMIREZ SOLIS
>> <maramirez(at)ulsaneza(dot)edu(dot)mx>:
>> >
>> > Buena tarde , tengo una duda y me gustaria que me ayuden a resolverla,
>> en
>> > una de mis tablas en un campo tengo esta notacion:
>> >
>> > idevento character varying(45) DEFAULT 'NULL'::character varying,
>> > pwdevento character varying(45) DEFAULT 'NULL'::character varying,
>> >
>> > porque me aparece eso de DEFAULT 'NULL':: ??
>>
>> Qué versión de PostgreSQL es esta? donde ves esa definición?
>> Cuando no hay un valor DEFAULT definido en la columna, postgres usa NULL
>> de modo que si no insertas nada en el campo y el campo esta definido
>> NOT NULL de un error.
>>
>> --
>> Jaime Casanova www.2ndQuadrant.com
>> Professional PostgreSQL: Soporte 24x7 y capacitación
>>
>> -
>> Enviado a la lista de correo pgsql-es-ayuda (
>> pgsql-es-ayuda(at)postgresql(dot)org)
>> Para cambiar tu suscripción:
>> http://www.postgresql.org/mailpref/pgsql-es-ayuda
>>
>
>

In response to

  • Re: Buen dia at 2015-07-08 00:54:01 from Guillermo E. Villanueva

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message MARIA ANTONIETA RAMIREZ SOLIS 2015-07-08 17:17:41 Documentar base de datos en postgresql
Previous Message Guillermo E. Villanueva 2015-07-08 00:54:01 Re: Buen dia