mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Extended WEEK() to be able to handle ISO weeks.
unlink socket file if mysqld dies on startup Some optimization of AND expressions
This commit is contained in:
@ -84,6 +84,12 @@ select yearweek("2000-01-01",1) as '2000', yearweek("2001-01-01",1) as '2001', y
|
||||
select yearweek("2000-01-06",1) as '2000', yearweek("2001-01-06",1) as '2001', yearweek("2002-01-06",1) as '2002',yearweek("2003-01-06",1) as '2003', yearweek("2004-01-06",1) as '2004', yearweek("2005-01-06",1) as '2005', yearweek("2006-01-06",1) as '2006';
|
||||
2000 2001 2002 2003 2004 2005 2006
|
||||
200001 200101 200201 200302 200402 200501 200601
|
||||
select week(19981231,2), week(19981231,3), week(20000101,2), week(20000101,3);
|
||||
week(19981231,2) week(19981231,3) week(20000101,2) week(20000101,3)
|
||||
52 53 52 52
|
||||
select week(20001231,2),week(20001231,3);
|
||||
week(20001231,2) week(20001231,3)
|
||||
1 52
|
||||
select date_format('1998-12-31','%x-%v'),date_format('1999-01-01','%x-%v');
|
||||
date_format('1998-12-31','%x-%v') date_format('1999-01-01','%x-%v')
|
||||
1998-53 1998-53
|
||||
|
Reference in New Issue
Block a user