Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > IBM DB2 > Again against g...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 8 Topic 8858 of 9055
Post > Topic >>

Again against generated columns or (missing) row value constructor in

by Bernard Dhooghe <dhoogheb@[EMAIL PROTECTED] > May 6, 2008 at 03:11 AM

Table definition:

 CREATE TABLE "SCHEMA1  "."X2"  (
                  "C1" CHAR(20) NOT NULL ,
                  "C2" CHAR(10) NOT NULL ,
                  "C3" CHAR(30) NOT NULL GENERATED ALWAYS AS (C1||
C2) )
                 IN "USERSPACE1" ;

-- DDL Statements for primary key on Table "SCHEMA1  "."X2"

ALTER TABLE "SCHEMA1  "."X2"
        ADD CONSTRAINT "P1" PRIMARY KEY
                ("C1",
                 "C2");

IBM Data Studio Version 1.1.1.

Try edit data , insert row. Will fail.

The editor has problems with the generated columns.

I would say: great.

The generated columns capability breaks the relational model. What is
a column in a base table that is not a column?

It has been discussed already several times in the past, but one usage
of generated columns in DB2 LUW is due to the the lack of (SQL92!)
sup****t of row value constructor in the where clause (and to close the
circle, in the cursor positioning clause as extension to SQL92 but
compatible with it in it's simple format) and corresponding optimizer
sup****t.

Quo usque ...

Bernard Dhooghe
 




 8 Posts in Topic:
Again against generated columns or (missing) row value construct
Bernard Dhooghe <dhoog  2008-05-06 03:11:14 
Re: Again against generated columns or (missing) row value
Tonkuma <tonkuma@[EMAI  2008-05-07 06:54:45 
Re: Again against generated columns or (missing) row value
Bernard Dhooghe <dhoog  2008-05-08 01:30:25 
Re: Again against generated columns or (missing) row value co
Serge Rielau <srielau@  2008-05-08 11:37:04 
Re: Again against generated columns or (missing) row value
Tonkuma <tonkuma@[EMAI  2008-05-08 17:30:17 
Re: Again against generated columns or (missing) row value
Tonkuma <tonkuma@[EMAI  2008-05-08 17:54:05 
Re: Again against generated columns or (missing) row value
Bernard Dhooghe <dhoog  2008-05-13 00:04:53 
Re: Again against generated columns or (missing) row value
Bernard Dhooghe <dhoog  2008-05-13 04:28:38 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Sun Jul 6 16:02:57 CDT 2008.