🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.bd.misc
Article #256

RE: [MySQL] Fecha y hora actuales como valor por defecto al insertarregistro

#256
From: Kepler
Date: Fri, 27 Aug 2004 10:17
17 lines
1341 bytes
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: <2p8jlmFh8t26U1@uni-berlin.de>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!not-for-mail
References: <2p38j4Fg977rU1@uni-berlin.de> <2p4kuuFfgut8U1@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!news2.google.com!fu-berlin.de!uni-berlin.de!not-for-mail
From: "Kepler" <no_e.xis.te@terra.es>
Newsgroups: es.comp.bd.misc
Subject: RE: [MySQL] Fecha y hora actuales como valor por defecto al insertarregistro
Date: Fri, 27 Aug 2004 12:17:44 +0200
Lines: 20
Message-ID: <2p8jlmFh8t26U1@uni-berlin.de>
References: <2p38j4Fg977rU1@uni-berlin.de> <2p4kuuFfgut8U1@uni-berlin.de>
X-Trace: news.uni-berlin.de GUbKMYGK+wSuERp80Dxb/ArS/O+KajsbsNx2BExFkjUYSrZhfE
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200