|
|
|
date+time=datetime
|
|||
|---|---|---|---|
|
#18+
Как сцепить дату и время чтобы на выходе было datetime? Пишу так: date_call-дата time_call-время select cast(date_call as datetime year to day) , cast(time_call as datetime hour to second) from table Есть желание их сцепить и получить datetime например так: select cast(cast(date_call as datetime year to day) + cast(time_call as datetime hour to second) as datetime year to second) from table Но так ошибку даёт. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 30.08.2005, 18:55 |
|
||
|
date+time=datetime
|
|||
|---|---|---|---|
|
#18+
Rumata EstorskiyКак сцепить дату и время чтобы на выходе было datetime? Пишу так: date_call-дата time_call-время select cast(date_call as datetime year to day) , cast(time_call as datetime hour to second) from table Есть желание их сцепить и получить datetime например так: select cast(cast(date_call as datetime year to day) + cast(time_call as datetime hour to second) as datetime year to second) from table Но так ошибку даёт. Попробуй: extend(date_call, year to second) + (time_call - extend('00:00:00', hour to second)) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 31.08.2005, 10:55 |
|
||
|
|

start [/forum/topic.php?desktop=1&fid=44&tid=1608931]: |
0ms |
get settings: |
8ms |
get forum list: |
14ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
71ms |
get topic data: |
10ms |
get forum data: |
3ms |
get page messages: |
33ms |
get tp. blocked users: |
2ms |
| others: | 249ms |
| total: | 396ms |

| 0 / 0 |
