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 > Oracle Miscellaneous > Re: 9i: Check- ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 9 of 12 Topic 6811 of 7279
Post > Topic >>

Re: 9i: Check- constraint Upper(Column)

by Maxim Demenko <mdemenko@[EMAIL PROTECTED] > Apr 2, 2008 at 08:37 PM

Shakespeare schrieb:
> "Andreas Mosmann" <mosmann@[EMAIL PROTECTED]
> schreef in

>> Now I tried
>> CREATE UNIQUE INDEX MySchema.MyIndexName
>> ON MySchema.MyTable trim(upper(trim(CLOGINNAME)))
>> TABLESPACE MyIndexTableSpace LOGGING;
>> and it works ...
>>
>> The outer function is ignored. Is this my mistake or an oracle bug?
>>
>>> Cheers.
>> thank you
>>> Carlos.
>> Andreas Mosmann
>>
>>
>> -- 
>> wenn email, dann AndreasMosmann <bei> web <punkt> de
> 
> I can reproduce this behaviour on my system.


Just to comment a little bit - it is of course not an oracle bug, as 
Shakespeare already shown, the brackets are *not* optional. The whole 
syntax diagram for table index clause looks like
[ schema. ]table [ t_alias ]
(index_expr [ ASC | DESC ]
   [, index_expr [ ASC | DESC ] ]...)
[ index_properties ]
( can be looked up 
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_5010.htm#i2062403

),
so , what OP has done ( as in example above) - created function based 
index on (upper(trim(CLOGINNAME))) for table MySchema.MyTable with an 
*alias* trim, on this way the outer trim function will not do what OP 
expected.

Best regards

Maxim
 




 12 Posts in Topic:
9i: Check- constraint Upper(Column)
Andreas Mosmann <mosma  2008-04-02 11:19:10 
Re: 9i: Check- constraint Upper(Column)
Carlos <miotromailcarl  2008-04-02 06:24:35 
Re: 9i: Check- constraint Upper(Column)
"fitzjarrell@[EMAIL   2008-04-02 07:22:06 
Re: 9i: Check- constraint Upper(Column)
Andreas Mosmann <mosma  2008-04-02 16:57:57 
Re: 9i: Check- constraint Upper(Column)
Andreas Mosmann <mosma  2008-04-02 16:54:14 
Re: 9i: Check- constraint Upper(Column)
Carlos <miotromailcarl  2008-04-02 08:21:09 
Re: 9i: Check- constraint Upper(Column)
Andreas Mosmann <mosma  2008-04-02 17:45:21 
Re: 9i: Check- constraint Upper(Column)
"Shakespeare" &  2008-04-02 18:50:54 
Re: 9i: Check- constraint Upper(Column)
Maxim Demenko <mdemenk  2008-04-02 20:37:34 
Re: 9i: Check- constraint Upper(Column)
Andreas Mosmann <mosma  2008-04-03 09:33:44 
Re: 9i: Check- constraint Upper(Column)
"Shakespeare" &  2008-04-03 10:07:53 
Re: 9i: Check- constraint Upper(Column)
Andreas Mosmann <mosma  2008-04-07 10:26:56 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Mon Dec 1 8:51:50 CST 2008.