Re: Default Value to a DateTime Column

2007-03-13 Thread Steve Edberg
At 9:30 PM -0300 3/13/07, allysonalves wrote: Hi everybody Has some way to set up a function, like now(), as a default value of an dateTime column. Is some thing like this. Create Table Persons ( PersonCode int(10) zerofill not null auto_increment, PersonName varchar(150) not null, CadastreDa

Re: default value does not set using LOAD DATA INFILE ...

2003-06-25 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2003-06-25 15:18:09 +1000: > From: "Roman Neuhauser" <[EMAIL PROTECTED]> > > please don't piggyback on other people's threads. you can start your > > own for free. > > Although it was the first time for me to send the post on this list, I was > sure that I did not foll

Re: default value does not set using LOAD DATA INFILE ...

2003-06-24 Thread Ruth Zhai
riginal Message - From: "Roman Neuhauser" <[EMAIL PROTECTED]> To: "Ruth Zhai" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, June 24, 2003 7:50 PM Subject: Re: default value does not set using LOAD DATA INFILE ... > please don't pigg

Re: default value does not set using LOAD DATA INFILE ...

2003-06-24 Thread Roman Neuhauser
please don't piggyback on other people's threads. you can start your own for free. # [EMAIL PROTECTED] / 2003-06-24 09:46:24 +1000: > I am using LOAD DATA INFILE to import some data to MySQL. I would like to > leave some fields blank and use the default value set in the tables. I have >

Re: default value

2002-03-20 Thread denonymous
From: "Michal Dvoracek" <[EMAIL PROTECTED]> > s possible to create table with default value returned by built-in > function ?? > like: > > create table x (a int not null default UNIX_TIMESTAMP()); > > When inserting new column in table field a will contains timestamp? In general, this cannot be

Re: default value

2002-03-20 Thread Gerald Clark
Michal Dvoracek wrote: >Hello, > >s possible to create table with default value returned by built-in >function ?? >like: > No. > >create table x (a int not null default UNIX_TIMESTAMP()); > What is wrong with the timestamp field type? > > >When inserting new column in table field a will conta

Re: Default value support function

2002-03-18 Thread Jeremy Zawodny
On Mon, Mar 18, 2002 at 05:32:07PM -0500, Kathy Reyes wrote: > Can I have a default value call a function in a MYSQL table for example > > convert(float,getdate()) Nope. -- Jeremy D. Zawodny, <[EMAIL PROTECTED]> Technical Yahoo - Yahoo Finance Desk: (408) 349-7878 Fax: (408) 349-5454 Cell:

RE: Default value for DATE column

2001-01-16 Thread Julian Strickland
Try using the following:- Format(Date,"-mm-dd") instead of ???/ > -Original Message- > From: Apolinaras "Apollo" Sinkevicius [SMTP:[EMAIL PROTECTED]] > Sent: 15 January 2001 20:43 > To: [EMAIL PROTECTED] > Subject: Default value for

Re: Default value for DATE column

2001-01-15 Thread Pete Harlan
MySQL only supports constant default values. You'll have to insert the date explicitly when you create the record if you want to simulate initialization to now(). Timestamps will update themselves whenever any other field in the record changes, unless you explictly tell them not to. So they are

Re: Default value for DATE column

2001-01-15 Thread Scott Baker
Use the timestamp datatype, not date. At 02:43 PM 1/15/2001 -0600, Apolinaras \"Apollo\" Sinkevicius wrote: >I would like to set a default value in DATE type column to Date(), but it >doesn't work. Is there a way to do it through column format? >If not, what should I enter in the VB code below (