Этот баннер — требование Роскомнадзора для исполнения 152 ФЗ.
«На сайте осуществляется обработка файлов cookie, необходимых для работы сайта, а также для анализа использования сайта и улучшения предоставляемых сервисов с использованием метрической программы Яндекс.Метрика. Продолжая использовать сайт, вы даёте согласие с использованием данных технологий».
Политика конфиденциальности
|
|
|
SQL in Vper
|
|||
|---|---|---|---|
|
#18+
SQLERRM Function - аналог Oracle PL/SQL SQLERRM Код: plaintext 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 22.08.2006, 19:18 |
|
||
|
SQL in Vper
|
|||
|---|---|---|---|
|
#18+
)) Спасибо, надо будет заюзать))... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 23.08.2006, 11:21 |
|
||
|
SQL in Vper
|
|||
|---|---|---|---|
|
#18+
Еще немного о нововведениях В версии 8 SQL функции в DB2 UDB работяют со строками на основании ли одно или двух байтных кодировок в версии 9 вводятся новые измерения для текстовых функций CODEUNITS16 CODEUNITS32 OCTETS CODEUNITS16 Function calculates the length of a string based on 16-bit UTF-16 code units. Used by many C compilers to represent the wchar_t datatype Use by Java to represent the CHAR datatype Useful when an application wants to know how many double byte characters are in a string. CODEUNITS32 Function calculates the length of a string based on 32-bit UTF-32 code units. Useful when an application wants to process data in a simple fixed length format, and need the same answer regardless of whether the character is a Unicode supplementary character or not OCTETS Function calculates the length of a string as a number of bytes. Useful for applications that are interested in allocation buffer space, or operations where simple byte processing is needed. DEFAULT STRING LENGTH UNIT Default string length unit depends on the context in which the string length unit is used: CHARACTER STRING: the default string length unit is a byte (or octet). GRAPHIC STRING: the default string length unit is two bytes. For ASCII and EBCDIC this corresponds to a double byte character. For Unicode, this corresponds to a UTF-16 code point. BINARY STRING: the default string length unit is a byte (or octet). A string expression is an expression that returns a value of any built-in string data type If expression does not return a built-in string type, then an error (SQLSTATE 42815) is returned Returned Values If expression is a character string, the result is a character string If expression is a graphic string, the result is a graphic string If expression is a binary string, the result is a binary string. CHARACTER_LENGTH Return the length of a character (UNICODE) string Код: plaintext 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. LENGTH function returns the length of expression in the implicit or explicit string length unit Код: plaintext 1. 2. 3. 4. Similar to INSTR function Код: plaintext 1. 2. 3. 4. 5. 6. 7. 8. OCTET_LENGTH() POSITION Synonym for LOCATE function No starting position available for search POSITION('here' IN 'there' USING OCTETS) POSITION('to','from here to there',CODEUNITS16) SUBSTRING SUBSTRING('there' FROM 1 FOR 3 USING CODEUNITS16) SUBSTRING('test', 2, 2, OCTETS) STRIP function removes blanks or another specified character from the end, the beginning, or both ends of a string-expression The STRIP and TRIM functions are the same except that they differ in syntax. Код: plaintext 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. Аналогичная STRIP функция TRIM Также в CLP убрали ограничение на размер SQL оператора в 64K SQLERRM имеет совсем котороткий вид Код: plaintext 1. 2. 3. 4. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 23.08.2006, 13:17 |
|
||
|
SQL in Vper
|
|||
|---|---|---|---|
|
#18+
ALTER позволяет: alter table drop column alter table alter column type alter table alter column nullability При изменении типов только таблица будет приведена к новому виду однако, только SELECT будут позволены на данной таблице (NO inserts или update) до того как REORG будет выполнен Не более 3 отдельных ALTERs позволено после чего REORG обязателен ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 23.08.2006, 13:22 |
|
||
|
SQL in Vper
|
|||
|---|---|---|---|
|
#18+
Так же Explain показывает почему не используется MQTs Lists MQTs which were not used and the reason for their exclusion Mismatched Elements and Expression Support Allow for expressions with different order of operation to be considered for MQT selection C = A + B is equivalent to C = B + A Maintenance of NULLable MQT columns Efficient handling of A=B OR (A IS NULL AND B IS NULL) predicates Смотрите в сторону функции EXPLAIN_GET_MSGS() которая вам сможет сказать почему не использоваласб MQT в данном запросе. Для этого нужно еще построить пару таблиц EXPLAIN ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 23.08.2006, 13:26 |
|
||
|
|

start [/forum/topic.php?fid=43&msg=33937398&tid=1605171]: |
0ms |
get settings: |
10ms |
get forum list: |
15ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
51ms |
get topic data: |
8ms |
get forum data: |
2ms |
get page messages: |
41ms |
get tp. blocked users: |
1ms |
| others: | 236ms |
| total: | 370ms |

| 0 / 0 |
