Re: DATE problem

2006-01-10 Thread Gleb Paharenko
Hello. MySQL doesn't support this syntax. See: http://dev.mysql.com/doc/refman/5.0/en/create-table.html If you want to automatically extract the year (month, day) part from the inserted value, you may want to use TRIGGERS, however, in my opinion, it is better to redesign your table

RE: DATE problem

2005-02-01 Thread Mike Johnson
From: René Fournier [mailto:[EMAIL PROTECTED] I'm trying to count rows that were added today. The column that I am counting on is in DATETIME format, so there are hours and minutes and seconds recorded, but I only need to check the date $sql =SELECT

Re: DATE problem

2005-02-01 Thread Michael Stassen
Mike Johnson wrote: From: René Fournier [mailto:[EMAIL PROTECTED] I'm trying to count rows that were added today. The column that I am counting on is in DATETIME format, so there are hours and minutes and seconds recorded, but I only need to check the date $sql = SELECT

Re: Date Problem

2004-03-09 Thread Richard Davey
Hello Eric, Tuesday, March 9, 2004, 11:46:23 PM, you wrote: ES We have a table with a Date Time field and we need to update only the date ES portion of that field. ES We have table a with field Foo with value '2004-01-01 12:15:00' and a date ES '2004-03-01' and we need to change the date

Re: Date Problem

2004-03-09 Thread Peter Burden
Richard Davey wrote: Hello Eric, Tuesday, March 9, 2004, 11:46:23 PM, you wrote: ES We have a table with a Date Time field and we need to update only the date ES portion of that field. ES We have table a with field Foo with value '2004-01-01 12:15:00' and a date ES '2004-03-01' and we need to

Re: Date Problem

2003-08-08 Thread Roger Baklund
* Girish Agarwal Hi All, I have added the date column ( column name is dolv ) in mysql as CHAR(10) Then it is not a 'date column', but s string column... ;) See the manual for a description of the different column types: URL: http://www.mysql.com/doc/en/Column_types.html URL:

RE: date problem

2003-03-23 Thread Michael Shulman
It looks like it's in now() format, but without the punctuation. The line from your insert statement is 20030323225645 If we break this apart, we see: Year = 2003 Month = 03 Date = 23 Hour = 22 (or 10pm) Minute 56 Seconds 45 Someone else on the list: where or how is the timezone encode, or

RE: date problem

2003-03-23 Thread Don Read
On 24-Mar-2003 Michael Shulman wrote: It looks like it's in now() format, but without the punctuation. The line from your insert statement is Nope, that's a MySQL timestamp. UNIX_TIMESTAMPS are # of seconds from the epoch (Jan 1 1970). nobody [EMAIL PROTECTED] is trying to store an INT

Re: date problem

2002-06-06 Thread Sammy Lau
-do you have any index covering this query? -this is not a good practice to have function call(s) in the where clause, since mysql will make the fucntion call for every rows scanned. select count(*) as c from users_table where user_regdate 2002-06-01 00:00:00 -furthermore, in the where clause, =

Re: Date Problem

2002-05-17 Thread Paul
Hi All I have a column in my MySql database with datetime column.i want to get only date part of that column .is any easy way to do that. Thanks a Lot Paul - Before posting, please check:

Re: Re: Date Problem

2002-05-17 Thread Egor Egorov
Paul, Friday, May 17, 2002, 12:11:37 PM, you wrote: I have a column in my MySql database with datetime column.i want to get P only date part of that column .is any easy way to do that. Look at DATE_FORMAT() function: http://www.mysql.com/doc/D/a/Date_and_time_functions.html Thanks a

Re: date problem

2001-01-15 Thread Bob Hall
I got a problem in converting the Jan 21 2001 format to 2001-01-21 I always got a null as result when i do date_format('Jan 21 2001','%Y-%m-%d') can anyone help me with this Sir, off the top of my head, I don't think there's a function for this. Date_format() converts from MySQL format to