adilmarwat Posted February 19, 2010 Share Posted February 19, 2010 I have mysql table name 'marks' contains 4 fields id, name, marks, avgI give the sql query to mysql table like thatUpdate marks SET avg = marks/550*100which gives result but there is no decimal value like 70.35 it shows only 70. How it is possible. Link to comment Share on other sites More sharing options...
justsomeguy Posted February 19, 2010 Share Posted February 19, 2010 Your field is an integer instead of a float. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.