Этот баннер — требование Роскомнадзора для исполнения 152 ФЗ.
«На сайте осуществляется обработка файлов cookie, необходимых для работы сайта, а также для анализа использования сайта и улучшения предоставляемых сервисов с использованием метрической программы Яндекс.Метрика. Продолжая использовать сайт, вы даёте согласие с использованием данных технологий».
Политика конфиденциальности
|
|
|
Срочно! Не работает order by
|
|||
|---|---|---|---|
|
#18+
В каком случае на SASE может не работать order by? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.07.2005, 09:41 |
|
||
|
Срочно! Не работает order by
|
|||
|---|---|---|---|
|
#18+
Закомментарен? Я не специалист по Sybase, но можно пример запроса в студию? Хочу понять ситуацию. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.07.2005, 10:04 |
|
||
|
Срочно! Не работает order by
|
|||
|---|---|---|---|
|
#18+
select QQ1, QQ2, QQ3 from QQ where QQ3 in (1,2) union select QQ1, QQ2, QQ3 from QQ where QQ3 in (2,3) union select QQ1, QQ2, QQ3 from QQ where QQ3 in (3,1) order by QQ3 посортирует без учета union такое ощущение что order by не действует на union ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.07.2005, 10:12 |
|
||
|
Срочно! Не работает order by
|
|||
|---|---|---|---|
|
#18+
мануалselect-statement UNION [ ALL | DISTINCT ] select-statement [ UNION [ ALL | DISTINCT ] select-statement ] ... [ ORDER BY integer [ ASC | DESC ], ... ] Usage The results of several SELECT statements can be combined into a larger result using UNION. The component SELECT statements must each have the same number of items in the select list, and cannot contain an ORDER BY clause. The results of UNION ALL are the combined results of the component SELECT statements. The results of UNION are the same as UNION ALL, except that duplicate rows are eliminated. Eliminating duplicates requires extra processing, so UNION ALL should be used instead of UNION where possible. UNION DISTINCT is identical to UNION. If corresponding items in two select lists have different data types, Adaptive Server Anywhere will choose a data type for the corresponding column in the result and automatically convert the columns in each component SELECT statement appropriately. If ORDER BY is used, only integers are allowed in the order by list. These integers specify the position of the columns to be sorted. The column names displayed are the same column names that are displayed for the first SELECT statement. An alternative way of customizing result set column names is to use the WITH clause on the SELECT statement. наверное надо написать order by 3 ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.07.2005, 10:23 |
|
||
|
|

start [/forum/topic.php?fid=55&msg=33177227&tid=2013522]: |
0ms |
get settings: |
6ms |
get forum list: |
13ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
52ms |
get topic data: |
8ms |
get forum data: |
2ms |
get page messages: |
39ms |
get tp. blocked users: |
1ms |
| others: | 229ms |
| total: | 356ms |

| 0 / 0 |
