Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in SQL by (20.3k points)

How do I clear the value from a cell and make it NULL?

1 Answer

0 votes
by (40.4k points)

Try this code.

Query:

Update myTable set MyColumn = NULL

The above query will set the entire column to null as per the question's title (i.e. To set a column value to NULL in SQL Server Management Studio).

You can use this query, to set the specific row on a specific column to null this way:

Update myTable set MyColumn = NULL where Field = Condition.

Here, the above code will set the specific cell to null as per the inner question (i.e. To clear the value from a cell and make it NULL).

You can learn in-depth about SQL statements, queries and become proficient in SQL queries by enrolling in our industry-recognized SQL course.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94.1k users

Browse Categories

...