How to Enter NULL

newbie 81 Reputation points
2022-04-14T09:32:01.583+00:00

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........

Developer technologies Transact-SQL
SQL Server Other
0 comments No comments
{count} votes

Accepted answer
  1. Bert Zhou-msft 3,436 Reputation points
    2022-04-14T10:01:33.987+00:00

    Hi,@newbie

    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.
    A simple method is to add '' directly. SQL will treat it as a string, or you can use Ctrl + 0 to implement it.

    Best regards,
    Bert Zhou


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our Documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Olaf Helper 47,436 Reputation points
    2022-04-14T10:01:30.903+00:00

    You mean in SSMS data grid view?
    Key combination <Ctrl> + 0

    0 comments No comments

  2. newbie 81 Reputation points
    2022-04-14T10:49:24.847+00:00

    Thanks for Olaf's reply and Bert's reply. The solution works for me. Thanks again.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.