About Table creation | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

About Table creation

what will happen if we give float type rather than integer? it will accept but memory wastage ha ?

21st Jun 2016, 11:36 AM
sharath thati
sharath thati - avatar
2 Answers
+ 1
It depends on your scenario. If you want to store decimal floating point number, you should go with float. If you need integers, than use INT.
21st Jun 2016, 11:58 AM
James Flanders
0
yeah you required float vales into the table than u insert float. otherwise int.
21st Jun 2016, 5:43 PM
Abhishek singh
Abhishek singh - avatar