I try to insert duplicate values got -803 sql error.even i inserted duplicates values we dont get -803 How?i.e we need continue

Created on Sept. 3, 2021, 2:15 a.m. - by Ravi, Pasupuleti



 I try to insert duplicate values got -803 sql error.even i inserted duplicates values we dont get   -803 How?i.e we  need continue


Comments (4)

Srinivasan, Panneer Selvam
Sept. 11, 2021, 11:34 a.m.

First, you should understand when we get -803

If you are trying to insert or update a row with primary key value which is already present in the table, Then you will get -803.

You are asking why you don't get -803. It is because you are primary key value is not unique that's why you don't get -803.

So if you want to get -803. Insert a row  with primary key value which is already present in the table. If you don't have any primarily key field. Then set the primary key column on the table.

To find out all the indexes built on the DB2 table TAB1 we can use the DB2 system table SYSIBM.SYSINDEXES. The SYSINDEXES database has one row for every index present in DB2. We can find indexes built on a particular table using the below SQL query.

SELECT NAME, UNIQUERULE, CLUSTERING
   FROM SYSIBM.SYSINDEXES WHERE TBNAME=’TAB1’

The column UNIQUERULE in the SELECT statement returns ‘P’ for primary index and ‘U’ for alternate index. The CLUSTERING column will be returned as ‘YES’ for clustered index and ‘NO’ for non-clustered index.

Hope I answered to your question.thanks

 


MiguelDraloCN, MiguelDraloCN
Oct. 24, 2024, 8:20 p.m.
https://9humantypes.com - Numerology forums http://telepostsacco.co.ke/ - Steps recognize holy endowments 91e4206

MichaelItefeQY, MichaelItefeQY
Nov. 8, 2024, 12:26 a.m.
Consistent pressure cleaning may enhance solar performance by removing grime, and other contaminants from solar arrays. This easy cleaning process will boost panel efficiency, guaranteeing that panels work at maximum output and generate the most power. Dirt and dirt can create a layer on the photovoltaic units that shields solar rays, reducing their capacity to produce energy. By maintaining photovoltaic systems clean, building managers may maximize their investment in renewable energy and decrease their overall energy costs. Moreover, clean solar panels are not as likely to become too warm, which can prolong their longevity and maintain their efficiency over the long term. If you're keen, take a look at my home and business power washing webpage to discover more. Warehouse/Commercial building Steam wash around San Francisco for realtors Readying Business Premises for Painting 5d91e42

MichaelItefeQY, MichaelItefeQY
Nov. 24, 2024, 2:11 a.m.
High-pressure washing is an essential step in priming buildings for remodeling. By removing flaking paint, dust, and debris, areas are well-prepared, ensuring better outcomes and longer-lasting updates. Neat areas enable new paint or sealants to stick more efficiently, reducing the risk of flaking and chipping. Furthermore, pressure cleaning can reveal underlying problems such as defects or wear that need to be repaired before painting. This comprehensive preparation step guarantees that the property is prepared for the best possible condition for any renovations or improvements. By implementing high-pressure washing, property owners can get more durable and effective updates. If you're keen, feel free to check out my domestic and corporate high-pressure washing services website to learn more. Gas Station Steam Pressure Washing in Fair Oaks for Amazon’s DST Preserving Neat and Secure Gas Stations c0d0be0

Copyright 2020 by ibmmainframer. All Rights Reserved.