adspace
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..
Answer Posted / 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 View All Answers
how to start mysql server? : Sql dba
how many tables will create when we create table, what are they? : Sql dba
Is inner join faster than left join?
what are aggregate and scalar functions? : Sql dba
define sql insert statement ? : Sql dba
What is the current version of sql?
how to use regular expression in pattern match conditions? : Sql dba
how to escape special characters in sql statements? : Sql dba
What is the best sql course?
what is schema? : Sql dba
Is primary key always clustered index?
what are the advantages of sql ? : Sql dba
what is dbms? : Sql dba
Do we need to rebuild index after truncate?
Can delete statement be rollbacked?