Page 1 of 1

MySQL Using function at definition level

Posted: Thu Feb 22, 2007 12:57 am
by dude81
Hi I was wondering how one can define a function at definition level. Say I have an application which needs to be in uppercase of any string by default. How to do this. Anybody has any ideas on this


Thanks
Sai Krishna

Posted: Thu Feb 22, 2007 3:21 am
by Oren
Can you clarify what the question is a little bit better? :?

Posted: Thu Feb 22, 2007 10:06 pm
by dude81
I mean to say using a function at definition level.
Like I define

Code: Select all

ID int(55) default some_function_here()
The some_function_here should check every field that enters here. Exactly you define a standard format for date, is it possible to do for strings also... I hope I'm clear
Is this possible, so that whatever values that comes goes through that function

Posted: Thu Feb 22, 2007 10:28 pm
by feyd
Do it code-side.