I have the following create statement
but when I look at the data field using phpadmin, value is (3.0) , and when I insert a value say "123.123456 " this number gets converted to 123.
I just want to know how to represent a decimal in an sql statement for mysql
Code:
$query = "CREATE TABLE P( code int(2) NOT NULL, value decimal(3.6) NOT NULL, PRIMARY KEY(code) ";
I just want to know how to represent a decimal in an sql statement for mysql
Comment