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


Please Help Members By Posting Answers For Below Questions

how to start mysql server? : Sql dba

1267


how many tables will create when we create table, what are they? : Sql dba

1144


Is inner join faster than left join?

1276


what are aggregate and scalar functions? : Sql dba

1129


define sql insert statement ? : Sql dba

1098


What is the current version of sql?

1094


how to use regular expression in pattern match conditions? : Sql dba

1113


how to escape special characters in sql statements? : Sql dba

1114


What is the best sql course?

1050


what is schema? : Sql dba

1147


Is primary key always clustered index?

1095


what are the advantages of sql ? : Sql dba

1142


what is dbms? : Sql dba

1061


Do we need to rebuild index after truncate?

1138


Can delete statement be rollbacked?

1054