Этот баннер — требование Роскомнадзора для исполнения 152 ФЗ.
«На сайте осуществляется обработка файлов cookie, необходимых для работы сайта, а также для анализа использования сайта и улучшения предоставляемых сервисов с использованием метрической программы Яндекс.Метрика. Продолжая использовать сайт, вы даёте согласие с использованием данных технологий».
Политика конфиденциальности
|
|
|
MSSQL] DATEPART function
|
|||
|---|---|---|---|
|
#18+
Есть поле в таблице d DATETIME Проблема в том, что DATEPART понимает только присловутые запросы типа DATEPART(dd, d) А надо вывести что-нибудь типа select DATEPART('yy-mm-dd', d) from xxx; ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 22.03.2002, 21:42 |
|
||
|
MSSQL] DATEPART function
|
|||
|---|---|---|---|
|
#18+
DATEPART -Returns an integer representing the specified datepart of the specified date. Используй CONVERT (data_type[(length)], expression [, style]) where style Is the style of date format you want when converting datetime or smalldatetime data to character data ( nchar, nvarchar, char, varchar, nchar, or nvarchar data types ), .... In the table, the two columns on the left represent the style values for datetime or smalldatetime conversion to character data. Add 100 to a style value to get a four-place year that includes the century (yyyy). Успехов ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 23.03.2002, 06:00 |
|
||
|
|

start [/forum/topic.php?fid=46&msg=32026053&tid=1823404]: |
0ms |
get settings: |
8ms |
get forum list: |
16ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
52ms |
get topic data: |
8ms |
get forum data: |
2ms |
get page messages: |
37ms |
get tp. blocked users: |
1ms |
| others: | 233ms |
| total: | 363ms |

| 0 / 0 |
