Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Referential Integrity

Posted on 1998-10-08
1
Medium Priority
?
206 Views
Last Modified: 2010-03-19
I have created a link between tables by foreign key. I may have to leave this foreign key value blank ( as there might not be a valid entry for this field) . At the moment referential integrity is forcing me to not leave this foreign key value blank. Because I have a foreign key declared does this mean that I have to enter a value here. ??????????
0
Comment
Question by:calis
1 Comment
 
LVL 1

Accepted Solution

by:
kdimmock earned 100 total points
ID: 1090452
Blank?  Try NULL (the reserved word, not a string!).  Make sure the column is "nullable".  It should work.

insert into table1 values('A',Null)
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Viewers will learn how the fundamental information of how to create a table.

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question