ERROR:Insert or update on table"accnt" violates foreign key
constraints "acct_to_curr_symbol"
DETAILS:KEY(accnt_curr_id)(-2)is not
present in the table "curr_symbol" ......solve The Problem..



ERROR:Insert or update on table"accnt" violates foreign key constraints "acct_to_cur..

Answer / Kamal Kumar Maurya

To solve the issue, you need to ensure that the value of `accnt_curr_id` in the 'accnt' table is present in the 'curr_symbol' table. Here are a few possible solutions:

1. Verify the data you're trying to insert/update, and make sure it has a valid `accnt_curr_id` value that exists in the 'curr_symbol' table.
2. If the value is missing in the 'curr_symbol' table, add the missing value so it can be used in the 'accnt' table.
3. Modify the foreign key constraints by either changing the referenced column or its data type, or creating a new foreign key constraint with a different name and referencing a valid set of values.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SQL PLSQL Interview Questions

How to handle bulk data?

1 Answers  


Explain character-manipulation functions?

1 Answers  


What are the two characteristics of a primary key?

1 Answers  


how many groups of data types? : Sql dba

1 Answers  


Can a view be mutating? If yes, then how?

1 Answers  


What are different types of sql commands?

1 Answers  


hi sql gurus, here is my question 4 u. i wanna use triggers for sending reminder mail to all users who are registered to the site. if any one knws the code plz send me ans here : chayabs3@gmail.com thnx advance

1 Answers  


What is string join?

1 Answers  


What is view explain with example?

1 Answers  


How you will create Toad Function?

1 Answers  


What are the Diff B/W Cursor and REF Cursor

3 Answers   CTS,


how to create temparary sequence

2 Answers   TCS,


Categories