Adding Data to Table with Foreign Key -


i trying add 1 row of data table (employee) has foreign key (ob_num). job_num referenced in job table. however, when go add row below error:

msg 547, level 16, state 0, line 1 insert statement conflicted foreign key constraint "fk__employee__job_nu__5d60db10". conflict occurred in database "team04", table "dbo.job", column 'job_num'. statement has been terminated.

my code is:

insert employee values (001, 'celie', 'davis', 457-457-4511, 002, '01-05-2012', null);

002 job_num


Comments

Popular posts from this blog

java - Solr query version issue: Invalid version or the data in not in 'javabin' format -

Hard vs. Soft Water: What's The Difference?

The Ten Most Livable Cities In The World