Новые сообщения [новые:0]
Дайджест
Горячие темы
Избранное [новые:0]
Форумы
Пользователи
Статистика
Статистика нагрузки
Мод. лог
Поиск
|
17.08.2009, 14:42
|
|||
---|---|---|---|
|
|||
to_date без формата |
|||
#18+
Как передать значение даты не указывая формат? select to_date('2008/10/05', '%Y/%m/%d') from table(set{1}) дает 2008-10-05 00:00:00.00000 select to_date('2008-10-05 00:00:00.00000') from table(set{1}) дает: SQL Error (-1263): A field in a datetime or interval value is incorrect or an illegal operation specified on datetime field. select to_date('2008-10-05') from table(set{1}) дает: SQL Error (-1277): Input does not match format specification. ... |
|||
:
Нравится:
Не нравится:
|
|||
|
17.08.2009, 19:11
|
|||
---|---|---|---|
to_date без формата |
|||
#18+
А что мешает посмотреть в "Guide to SQL: Syntax", например ? "If you omit the format_string parameter, the TO_DATE function applies the default DATETIME format to the DATETIME value. The default DATETIME format is specified by the GL_DATETIME environment variable." ... |
|||
:
Нравится:
Не нравится:
|
|||
|
|
start [/forum/topic.php?fid=44&mobile=1&tid=1607762]: |
0ms |
get settings: |
8ms |
get forum list: |
13ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
128ms |
get topic data: |
11ms |
get forum data: |
2ms |
get page messages: |
41ms |
get tp. blocked users: |
1ms |
others: | 13ms |
total: | 225ms |
0 / 0 |