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...
Concatenating '-' with a NULL will always return NULL. TheVALUE expression replaces NULLs with an empty string.
SELECT * FROM `mydata`.`mytable` WHERE CONCAT(<list of columns>) IS NOT NULL. All we are missing now is the list of nullable columns, comma-separated. We're going to use the GROUP_CONCAT function to produce the final statement, which we will execute like this
A field with a NULL value is a field with no value. If a field in a table is optional, it is possible to insert a new record or update a record without adding a value to this
Предикат IS NULL позволяет проверить отсутствие (наличие) значения в полях таблицы. Использование в этих случаях обычных предикатов сравнения может привести к неверным результатам, так как сравнение со значением NULL дает результат UNKNOWN (неизвестно).
Даже выражение NULL != NULL не будет истинным, ведь нельзя однозначно сравнить одну неизвестность с другой.
SQL supports NULL, a special value that is employed to represent the values of attributes that will be unknown or not apply to a tuple.
Тем не менее, NULL, как NULL-значение, часто используется в SQL. Предположим, появился покупатель, которому еще не назначен продавец.
DETAIL: Failing row contains (1, null, null, 0, single, 2017-05-18 23:21:37.015421+00, null, null, root).
В.C. Проверка значений NULL в предложении WHERETesting for NULL in a WHERE clause. Не используйте для поиска значений NULL выражение