常用的数据类型
int
数字范围-2**32 ~ 2**32-1
bigint
数字范围-2**63 ~ 2 ** 63-1
float
float(m,d), 其中m表示的是有效位, d表示小数位
有效位就是把当前的小数...: 12345.12 转变成科学计数法: 1.234512 * 10**5
m最大值为7
double
double(m, d), 其中m表示的是有效位, d表示小数位
m的最大值为15
decimal...涉及金额的时候使用decimal.
double(m, d), 其中m表示的是有效位, d表示小数位
m的最大值为65
不会产生精度问题, 因为decimal没有精度损失的本质是因为它存的是字符串....=
> 与>=
<与<=
between 与not between
SELECT 2 not between 1 and 3
is null 与 is not null
用来判断当前是否有记录
逻辑运算符...类似python的排序, 是根据ascii码来排序的.