As per the comments, I'm going to assume you're getting mixed up between update and insert.

 USE [DB_A] ;
 UPDATE dbo.address
 SET City = 'test',
     State = 'ing'
 WHERE City IS NULL ;

And

 USE [DB_A] ;
 UPDATE dbo.address
 SET City = NULL,
     State = NULL
 WHERE City = 'test' ;

I think you're there otherwise :-)

Answer from kezsto on Stack Exchange
๐ŸŒ
w3resource
w3resource.com โ€บ sql โ€บ insert-statement โ€บ insert-null.php
Sql inserting NULL values - w3resource
To add values'A001','Jodi','London','.12','NULL' for a single row into the table 'agents' then, the following SQL statement can be used: ... -- This SQL code attempts to insert a new row into the 'agents' table.
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ sql โ€บ how-to-insert-rows-with-null-values-in-sql
How to Insert Rows with NULL Values in SQL? - GeeksforGeeks
July 23, 2025 - INSERT INTO WORKER VALUES('SAM','ONTARIO',NULL); INSERT INTO WORKER VALUES('TIM',NULL,56); INSERT INTO WORKER VALUES(NULL,'CAIRO',43); INSERT INTO WORKER VALUES(NULL,'MUMBAI',NULL); INSERT INTO WORKER VALUES(NULL,NULL,NULL);
๐ŸŒ
Microsoft Learn
learn.microsoft.com โ€บ en-us โ€บ sql โ€บ t-sql โ€บ language-elements โ€บ null-and-unknown-transact-sql
NULL and UNKNOWN (Transact-SQL) - SQL Server | Microsoft Learn
You can insert null values into a column by explicitly stating NULL in an INSERT or UPDATE statement, or by leaving a column out of an INSERT statement.
๐ŸŒ
Xojo Programming Forum
forum.xojo.com โ€บ targets โ€บ web
MSSQLServerDatabase ExecuteSQL insert NULL values - Web - Xojo Programming Forum
August 15, 2022 - When inserting a record into an ... into the related columns in the database. For example, if WebTextField = โ€œโ€, then insert NULL literal into the database....
Find elsewhere
๐ŸŒ
Embarcadero
docwiki.embarcadero.com โ€บ InterBase โ€บ 2020 โ€บ en โ€บ Inserting_Rows_with_NULL_Column_Values
Inserting Rows with NULL Column Values - InterBase
When a specific value is not provided for a column on insertion, it is standard SQL practice to assign a NULL value to that column. In InterBase a column is set to NULL by specifying NULL for the column in the INSERT statement.
๐ŸŒ
W3Schools
w3schools.com โ€บ sql โ€บ sql_null_values.asp
SQL NULL Values - IS NULL and IS NOT NULL
SQL Examples SQL Editor SQL Quiz SQL Exercises SQL Server SQL Syllabus SQL Study Plan SQL Bootcamp SQL Certificate SQL Training ... 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 field.
๐ŸŒ
Dirask
dirask.com โ€บ posts โ€บ MS-SQL-Server-Insert-NULL-values-1Xoe8j
MS SQL Server - Insert NULL values
INSERT INTO [users] ( [name], [surname], [department_id], [salary]) VALUES (NULL, NULL, NULL, NULL), ('Simon', NULL, NULL, NULL), ('Taylor', 'Martin', NULL, NULL), ('Andrew', 'Thompson', 1, NULL), ('Taylor', 'Martin', 2, '2000'); ... CREATE ...
๐ŸŒ
Tutorialspoint
tutorialspoint.com โ€บ sql โ€บ sql-null-values.htm
SQL - NULL Values
Here, NOT NULL signifies that column should always accept an explicit value of the given data type. You can insert NULL values into the columns where we did not use NOT NULL. Let us create a table with the name CUSTOMERS in the SQL database using the CREATE statement as shown in the query below โˆ’
๐ŸŒ
Quora
quora.com โ€บ What-is-the-command-to-insert-null-values-in-SQL-fields
What is the command to insert null values in SQL fields? - Quora
Answer (1 of 11): SQL INSERT statement is used to insert new records into table. NULL keyword represents undefined value of a column belonging to database table. According to description as mentioned into above question SQL insert statement should not be executed to insert null values into tabl...
๐ŸŒ
Scaler
scaler.com โ€บ topics โ€บ sql โ€บ null-value-in-sql
NULL Value in SQL - Scaler Topics
April 20, 2022 - NULL can be inserted in any column by using the assignment operator "=". Also, to test whether a NULL is present or not we have to use certain operators, for example, IS NULL and IS NOT NULL.
๐ŸŒ
TutorialsPoint
tutorialspoint.com โ€บ insert-null-value-into-int-column-in-mysql
Insert NULL value into INT column in MySQL?
You can insert NULL value into an int column with a condition i.e. the column must not have NOT NULL constraints. The syntax is as follows. INSERT INTO yourTableName(yourColumnName) values(NULL); To under
๐ŸŒ
Quora
quora.com โ€บ How-do-you-add-null-values-in-SQL
How to add null values in SQL - Quora
Answer (1 of 3): NULL values are handled differently depending on whether they are in the context of a tuple or a set. In the case of a tuple: (e.g. 1 + NULL), the result is always NULL. This is because if any part of a tuple is missing or unknown then the entire tuple cannot be known and hence m...
๐ŸŒ
Iamtimcorey
blog.iamtimcorey.com โ€บ im-getting-a-cannot-insert-the-value-null-into-column-id-message-in-sql
Iโ€™m Getting a Cannot Insert the Value NULL Into Column โ€˜IDโ€™ Message in SQL โ€“ IAmTimCorey Blog
You go to insert data into SQL, ... get the error โ€œCannot insert the value NULL into column โ€˜idโ€™โ€. It probably continues by saying โ€œcolumn does not allow nulls. INSERT fails.โ€ Something like this: You look at your SQL statement first, to see if that is the ...
๐ŸŒ
Sqlzap
sqlzap.com โ€บ blog โ€บ how-to-insert-a-null-value-in-sql
How to Insert a NULL Value in SQL
Think of it like this: If you're ... the secret sauce? Here's how you insert a NULL value: ... Yep, it's that simple! Just use the keyword NULL (without quotes) in your INSERT statement......
๐ŸŒ
Microsoft Learn
learn.microsoft.com โ€บ en-us โ€บ answers โ€บ questions โ€บ 812578 โ€บ how-to-enter-null
How to Enter NULL - Microsoft Q&A
In Sql server2016,I was pasting data into a table, how do i enter 'null' into a cell? I try to some ways to get it, but failed.Hope to get support........ ... A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions. ... Welcome to Microsoft T-SQL Q&A Forum! If I understand correctly, if you want to insert null on the empty column, you can try 2 ways.
๐ŸŒ
Reddit
reddit.com โ€บ r/sql โ€บ insert into if not null
r/SQL on Reddit: insert into if not null
July 4, 2019 -

Hello everyone, I just can't figure out the, as I guess, very easy solution to my problem. (the worst part is, I didn't find anything good / related via google for example).

I want to insert data into a table2, IF, ond only IF a specific Value from #table 1 is NOT NULL. If this Value is NULL, I don't want to insert anything at all.

Like:

CASE #table1.value is not null THEN

Insert into table2 (values) select * from table1

ELSE 'do nothing'

END

But it is not working. can anybody point my into the right direction please ? :)