我在执行
时遇到错误CREATE TABLE IF NOT EXISTS lobby (World VARCHAR(100), X DOUBLE(100), Y DOUBLE(100), Z DOUBLE(100), Yaw FLOAT(100), Pitch FLOAT(100))
答案 0 :(得分:0)
如果使用比例尺或精度,则需要两者。所以,这有效:
CREATE TABLE IF NOT EXISTS lobby (World VARCHAR(100),
X DOUBLE(10, 2),
Y DOUBLE(10, 2),
Z DOUBLE(10, 2),
Yaw FLOAT(10, 2),
Pitch FLOAT(10, 2)
);
但是,我认为没有理由包括比例和精度:
CREATE TABLE IF NOT EXISTS lobby (World VARCHAR(100),
X DOUBLE,
Y DOUBLE,
Z DOUBLE,
Yaw FLOAT,
Pitch FLOAT
);
混合double
s and
float s in the same table seems really strange to me. Why not make all of them
double`?