![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I just want to know how db2 can allow creating columns with spaces between them . I was able to create this in db2 udb 9.7 create table arun.test1("a b" int); and was able to access the row when I use double quotes. Is this ok? |
#3
| |||
| |||
|
|
I just want to know how db2 can allow creating columns with spaces between them . I was able to create this in db2 udb 9.7 create table arun.test1("a b" int); and was able to access the row when I use double quotes. Is this ok? If there are information regarding how and why it can happen please link them in the reply. Is this a codepage issue? Using double quotes forces DB2 to take the identifiers "as-is" |
#4
| |||
| |||
|
|
Not all features that are legal are encouraged.... |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
Yes, double quotes are part of the ANSI/ISO standards. It is one of our biggest mistrakes. Do not use it. Follow the ISO rules aoubt using only alphas, digits and underscores; this will let your data element names will port to all the X3J languages and other tools. There are bad SQL programmers who use this feature to do display formatting in the database. When someone does this, it is a symptom of other bad code. They do not understand how a tiered architecture works. |
![]() |
| Thread Tools | |
| Display Modes | |
| |