View previous topic :: View next topic
|
Author |
Message |
jajularamesh
New User
Joined: 21 Nov 2005 Posts: 8
|
|
|
|
which function is better YEAR(col) or SUBSTR() performance wise.Actually both are functions so performance will go down.i am using these these functions repeatedly so i wanted to make sure which is better of the two functins. |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hi Jajularamesh ,
Both the function are for different purpose.
Year() : to find out year of passed given date
Substr():Gives substring of passed string |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
My cards are on SUBSTR... as we would pass specifically which characters to pick out... Wild guess though... |
|
Back to top |
|
|
|