Oracle 5.0 Reference Manual page 842

Table of Contents

Advertisement

| DAYNAME('2010-01-01') | MONTHNAME('2010-01-01') |
+-----------------------+-------------------------+
| Friday
+-----------------------+-------------------------+
1 row in set (0.00 sec)
mysql>
SELECT DATE_FORMAT('2010-01-01','%W %a %M %b');
+-----------------------------------------+
| DATE_FORMAT('2010-01-01','%W %a %M %b') |
+-----------------------------------------+
| Friday Fri January Jan
+-----------------------------------------+
1 row in set (0.00 sec)
mysql>
SET lc_time_names = 'es_MX';
Query OK, 0 rows affected (0.00 sec)
mysql>
SELECT @@lc_time_names;
+-----------------+
| @@lc_time_names |
+-----------------+
| es_MX
|
+-----------------+
1 row in set (0.00 sec)
mysql>
SELECT DAYNAME('2010-01-01'), MONTHNAME('2010-01-01');
+-----------------------+-------------------------+
| DAYNAME('2010-01-01') | MONTHNAME('2010-01-01') |
+-----------------------+-------------------------+
| viernes
+-----------------------+-------------------------+
1 row in set (0.00 sec)
mysql>
SELECT DATE_FORMAT('2010-01-01','%W %a %M %b');
+-----------------------------------------+
| DATE_FORMAT('2010-01-01','%W %a %M %b') |
+-----------------------------------------+
| viernes vie enero ene
+-----------------------------------------+
1 row in set (0.00 sec)
The day or month name for each of the affected functions is converted from
indicated by the
character_set_connection
[462]
lc_time_names
by MySQL may differ from those supported by your operating system.
ar_AE: Arabic - United Arab Emirates
ar_DZ: Arabic - Algeria
ar_IN: Arabic - India
ar_JO: Arabic - Jordan
ar_LB: Arabic - Lebanon
ar_MA: Arabic - Morocco
ar_QA: Arabic - Qatar
ar_SD: Arabic - Sudan
ar_TN: Arabic - Tunisia
be_BY: Belarusian - Belarus
ca_ES: Catalan - Spain
da_DK: Danish - Denmark
de_BE: German - Belgium
de_DE: German - Germany
MySQL Server Locale Support
| January
|
| enero
|
may be set to any of the following locale values. The set of locales supported
822
|
|
[442]
system variable.
ar_BH: Arabic - Bahrain
ar_EG: Arabic - Egypt
ar_IQ: Arabic - Iraq
ar_KW: Arabic - Kuwait
ar_LY: Arabic - Libya
ar_OM: Arabic - Oman
ar_SA: Arabic - Saudi Arabia
ar_SY: Arabic - Syria
ar_YE: Arabic - Yemen
bg_BG: Bulgarian - Bulgaria
cs_CZ: Czech - Czech Republic
de_AT: German - Austria
de_CH: German - Switzerland
de_LU: German - Luxembourg
to the character set
utf8

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents