Этот баннер — требование Роскомнадзора для исполнения 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&tid=1823404]: |
0ms |
get settings: |
11ms |
get forum list: |
19ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
53ms |
get topic data: |
11ms |
get forum data: |
3ms |
get page messages: |
46ms |
get tp. blocked users: |
1ms |
| others: | 272ms |
| total: | 420ms |

| 0 / 0 |
