|
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, 14:42 |
|
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." ... |
|||
:
Нравится:
Не нравится:
|
|||
17.08.2009, 19:11 |
|
|
start [/forum/topic.php?fid=44&msg=36148602&tid=1607762]: |
0ms |
get settings: |
10ms |
get forum list: |
14ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
59ms |
get topic data: |
11ms |
get forum data: |
2ms |
get page messages: |
43ms |
get tp. blocked users: |
1ms |
others: | 13ms |
total: | 161ms |
0 / 0 |