Union select null, null, null, null, null, null, null from information_schema.tables. for a small database containing three tables. this instruction is used in sql injection I tried it and it worked but I didn't really know how it works can somebody help me...
11223344) UNION SELECT NULL,NULL,NULL,NULL WHERE 1=2 –- Если нет ошибки, значит синтаксис верный, т.е. используется MS SQL Server.
UNION ALL SELECT NULL, *, NULL, NULL FROM email. I understand what this does and why; the hacker needs to create a query that has the same number of columns as the query it's being merged with, and shifted around the * to make sure the emails are displayed. That's not my question.
If a null pointer constant is converted to a pointer type, the resulting pointer, called a null pointer, is
Как и в случае с обычными переменными, указатели не инициализируются при создании. Если значение не было присвоено, то указатель по умолчанию будет указывать на любой адрес, содержимым которого...
Then in the second table I have select ..., null as opt from... I know that I could have an empty string with '' as.
that's wrong though. (char*)NULL isn't a string at all, it's a null pointer. this isn't a string either even though it's an array of char.
NULL, в общем-то, обозначает то же самое. Но здесь есть неприятное следствие: если про пустую строку можно с уверенностью сказать, что её длина равна нулю, то
Добрый день! Подскажите, пожалуйста, что значит "NULL", и когда он применяется ? В примере ниже , насколько я понимаю, создаётся строка, и в этой
The IS NULL operator is used to test for empty values (NULL values). The following SQL lists all customers with a NULL value in the "Address" field