hello

can anyone tell me how to insert the NULL value into a field?

hello

can anyone tell me how to insert the NULL value into a field?

INSERT INTO test (code1) VALUES (NULL)

I believe if column code1 is PRIMARY or UNIQUE then there can be only one row where it is NULL

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.