Article View: es.comp.bd.misc
Article #258Re: [MySQL] Fecha y hora actuales como valor por defecto al insertarregistro
From: Pumuki
Date: Wed, 01 Sep 2004 10:27
Date: Wed, 01 Sep 2004 10:27
21 lines
1670 bytes
1670 bytes
En Oracle, al hacer el CREATE de la tabla puedes poner un DEFAUL VALUE(sysdate). "Kepler" <no_e.xis.te@terra.es> wrote in message news:<2p8jlmFh8t26U1@uni-berlin.de>... > stripTM <striptmNOVALE@yahoo.com> escribi� en el mensaje de noticias > 2p4kuuFfgut8U1@uni-berlin.de... > > Kepler escribi�: > > > En una tabla, tengo entre otros estos dos campos: "fecha" y "hora", > y > > > quisiera que por defecto, al insertar un nuevo registro, se les asignara > la > > > fecha y hora actuales del servidor. > > > > > > > Creo que lo que buscas est� aqu� > > http://dev.mysql.com/doc/mysql/en/CREATE_TABLE.html#IDX1640 > > Pues s�, como me imaginaba; tendr� que asignar a mano los valores de > fecha y hora actuales cuando haga un INSERT. > > Gracias.
Technical Details
Message-ID:
<c9fc4895.0409010227.19947c1c@posting.google.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!postnews2.google.com!not-for-mailReferences:
<2p38j4Fg977rU1@uni-berlin.de> <2p4kuuFfgut8U1@uni-berlin.de> <2p8jlmFh8t26U1@uni-berlin.de>Show Full Headers
Complete Article Headers
X-Google-Thread: 106e2f,2a91492b6b6db535 X-Google-Attributes: gid106e2f,public X-Google-Language: SPANISH,ASCII Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews2.google.com!not-for-mail From: inmalanza@yahoo.es (Pumuki) Newsgroups: es.comp.bd.misc Subject: Re: [MySQL] Fecha y hora actuales como valor por defecto al insertarregistro Date: 1 Sep 2004 03:27:26 -0700 Organization: http://groups.google.com Lines: 21 Message-ID: <c9fc4895.0409010227.19947c1c@posting.google.com> References: <2p38j4Fg977rU1@uni-berlin.de> <2p4kuuFfgut8U1@uni-berlin.de> <2p8jlmFh8t26U1@uni-berlin.de> NNTP-Posting-Host: 81.80.239.163 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1094034447 31571 127.0.0.1 (1 Sep 2004 10:27:27 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 1 Sep 2004 10:27:27 +0000 (UTC)