Maybe I'm foolish, maybe I'm blind, but I'm only Swift developer who tries to deal with some aspects of MySQL.
I've got a simple table with several columns:
id INT NOT NULL
name VARCHAR NOT NULL
age INT ALLOW NULL
domain VARCHAR NOT NULL
So the only column 'age' may be NULL
. When I do SELECT *
, I receive (id, name, domain)
or (id, name, age, domain)
according to 'age' value.
How can I get all 4 columns in row even if age is NULL
? So it may be something like: (453, John, NULL, johnDoe)
or (453, John, 37, johnDoe)
.
To access MySQL server, I use Swift Perfect's native MySQL framework.
EDIT: Let my table have these columns also:
randomValue1 INT ALLOW NULL
randomValue2 INT NOT NULL
randomValue3 INT ALLOW NULL
So if I fetch data, it may be 7 values (if everything is set) or 6 values if smth is not set, so how will know what is set and what is not?