MySQL Forums
Forum List  »  Stored Procedures

Re: How function can help
Posted by: hello world
Date: November 25, 2005 03:39PM

perfect thanks ...once function executed and used for whole fields without any problem.

select
@b1:=substring_index(substring_index(@v1:=f_Call(f1,f2,f3,f4,f5), ',', 1), ',', -1) c1,
@b2:=substring_index(substring_index(@v1, ',', 2), ',', -1) c2,
@b3:=substring_index(substring_index(@v1, ',', 3), ',', -1) c3,
@b4:=substring_index(substring_index(@v1, ',', 4), ',', -1) c4,
@b5:=substring_index(substring_index(@v1, ',', 5), ',', -1) c5,
concat( (@b1*@b2)/@b3 + @b4 - @b5)
;

Options: ReplyQuote


Subject
Views
Written By
Posted
2188
November 24, 2005 07:40AM
1588
November 24, 2005 07:45PM
1635
November 25, 2005 01:30AM
2004
November 25, 2005 04:06AM
1555
November 25, 2005 08:11AM
1555
November 25, 2005 08:19AM
Re: How function can help
1482
November 25, 2005 03:39PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.