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 / 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 |
How to handle bulk data?
Explain character-manipulation functions?
What are the two characteristics of a primary key?
how many groups of data types? : Sql dba
Can a view be mutating? If yes, then how?
What are different types of sql commands?
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
What is string join?
What is view explain with example?
How you will create Toad Function?
What are the Diff B/W Cursor and REF Cursor
how to create temparary sequence
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)