|
View previous topic :: View next topic
|
| Author |
Message |
Nagendran
New User
Joined: 24 Jan 2007 Posts: 89 Location: USA
|
|
|
|
Hi,
We havent specified any constraint on a field 'SER_DATE' of the DB2 table. (which is type of DATE ).But its not allowing to insert data greater than a range(say 2010-01-31).The field is an indexed one. how to identify the constraint specified on indexed field?
regards,
Nagu |
|
| Back to top |
|
 |
dbzTHEdinosauer
Global Moderator

Joined: 20 Oct 2006 Posts: 6965 Location: porcelain throne
|
|
|
|
| it is not a constraint. It is a partition boundry violation. If you think you are trying to INSERT into the correct partition, you need to look at the Partition definition parms. |
|
| Back to top |
|
 |
Nagendran
New User
Joined: 24 Jan 2007 Posts: 89 Location: USA
|
|
|
|
Thank you.I have some doubts...
1)how the partioned will be chosen to insert the data?
2)will it based on date? how to identify the boundary specified in the partioned(range)?
regards,
Nagu |
|
| Back to top |
|
 |
dbzTHEdinosauer
Global Moderator

Joined: 20 Oct 2006 Posts: 6965 Location: porcelain throne
|
|
|
|
| Start with the DDL that created the tables. |
|
| Back to top |
|
 |
dbzTHEdinosauer
Global Moderator

Joined: 20 Oct 2006 Posts: 6965 Location: porcelain throne
|
|
|
|
| sorry, actually what you need is the partitioning index definitions. which are also ddl. |
|
| Back to top |
|
 |
dbzTHEdinosauer
Global Moderator

Joined: 20 Oct 2006 Posts: 6965 Location: porcelain throne
|
|
|
|
Here is the doc for SYSIBM.SYSINDEXPART
Which contains the Limitkey for the partition.
Here is sample SQL to access the rows containing info for your table. |
|
| Back to top |
|
 |
|
|