8

If I type NULL, it is treated as a string literal. If I leave it blank it is treated as an empty string.

2
  • Are you talking about setting it in the table definition, or when setting the value of a column in a row? Commented Mar 1, 2011 at 20:50
  • And if you're talking about setting a column value, are you using the Insert tab, or an actual SQL statement? Commented Mar 1, 2011 at 20:52

3 Answers 3

9

There must be a checkbox near input for setting NULL value. ( only on nullable columns )

( alternatievly, I prefer to use SQL language directly )

Sign up to request clarification or add additional context in comments.

Comments

3

In phpMyAdmin, there should be a checkbox next to the text field. Checking that should make the field NULL.

If you're using a query, it is:

UPDATE table SET field = NULL WHERE id = 4

Comments

1

Just tick the checkbox in the NULL column (and make sure that NULL is allowed for that field).

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.