I am trying to create tables with SQL. When I create the table, I'm receiving an error SQL7905. For two of the tables I added a foreign key. There is no problem inserting or selecting information from those tables, but I cannot update records or delete records. If I try, I receive the error message SQL7008. Could you please help me to solve this problem?
The foreign key definition includes update and delete rules. The SQL7008 error indicates that the update and/or delete rule that you selected requires the associated tables or physical files to be journaled. If you don't want to journal, then you might want to consider using the RESTRICT rules.
MORE INFORMATION ON THIS TOPIC
Search400.com's targeted search engine: Get relevant information on DB2/400.
The Best Web Links: tips, tutorials and more.
Check out this Search400.com Featured Topic: Database issues resolved
Dig Deeper on DB2 UDB (universal databases)
Related Q&A from Kent Milligan
Create a host variable of the where in statement on the fly with dynamic SQL. Continue Reading
To solve the SQL error -321 on IBM i6.1, use the new values statement to overcome the error. If you are using an older release, declare a cursor ... Continue Reading
When working with DB2 files with columns that have both short and long names, there is no option choose which column names are returned via ODBC ... Continue Reading