Click here to Skip to main content
15,904,153 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: (untagged)
(in pfgun int)
SQL
BEGIN
     select araclar.*, fiyatlar.fyt as fyt,
    from xxx
    left join xxxxx
END


I want to multiply fyt column with parameter pfgun also fyt varchar type in mysql table

but pfgun int type
Posted
Updated 14-Apr-15 1:29am
v2
Comments
Maciej Los 14-Apr-15 7:29am    
So, why fyt is varchar data type?
ZurdoDev 14-Apr-15 8:28am    
I don't know MySql but all you have to do is convert the one column to Int or some other appropriate type and then multiply by the column.

1 solution

Try something like this:
SQL
BEGIN
     select araclar.*, CONVERT(fiyatlar.fyt, SIGNED) * 10 as fyt,
    from xxx
    left join xxxxx
END


Good luck!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900