Select char_length(cast('123456789 1' as varchar(10))) from rdb$database. Получаем: Exception ... string truncation Т.е. пробел мы обрезать можем, а другие символы нет. Так и должно быть или нет?
select cast (2000 as type of quint) from rdb$database select cast (2000 as int) from rdb$database. If TYPE OF is used with a (VAR)CHAR type, its character.
select cast (2000 as type of quint) from rdb$database select cast (2000 as int) from rdb$database. If TYPE OF is used with a (VAR)CHAR type, its character set and collation are retained.
select cast (2000 as type of quint) from rdb$database select cast (2000 as int) from rdb$database.
Очередной SQL Injection довольно массового характера Обнаружив на сайте урлы вида /album.phtml?id=340 бот злоумышленника предлагает php-шному коду к рассмотрению урлы формата например /album.phtml?id=999999.9+%2f**%2fuNiOn%2 f**%2faLl+%2f**%2f sElEcT+...
Now you can chat with who search for : 999999.9 unio n all sel ect 0x393133353134353632312e39 0x393133353134353632322e39 And Exchange opinions about
Бесплатный сервис Google позволяет мгновенно переводить слова, фразы и веб-страницы с английского на более чем 100 языков и обратно.
I have a query with a UNION clause. One of the field is a plain hardcoded string. The string in the statement after UNION gets truncated to match the string length of the field before the UNION.
When the CAST or CONVERT functions output a character string, and they receive a character string input, the output has the same collation and collation label as the input.
CAST(expression AS datatype(length)). Parameter Values.