初学sql,请教几个问题
--------------------------
1.image和text型有何区别呢?何时用image, 何时用 text,
2.unicode类型在什么情况下使用呢?
3.float与numeric有何区别呢?好象说float是不误差的.可是不真明白.请大家指点.
4.如果作为编号,是用int型好呀,还是用 char型好呀.比如员工编号这类东西?
--------------------------
1.image和text型有何区别呢?何时用image, 何时用 text,
2.unicode类型在什么情况下使用呢?
3.float与numeric有何区别呢?好象说float是不误差的.可是不真明白.请大家指点.
4.如果作为编号,是用int型好呀,还是用 char型好呀.比如员工编号这类东西?
---------------------------------------------
A: Image data type save data as binary,text data type save data as string~~~~~~~~~~~~~
2.unicode类型在什么情况下使用呢?
---------------------------------------------
A: Usually be used in the situation of multi-language~~~~~~~~~~~~~
3.float与numeric有何区别呢?好象说float是不误差的.可是不真明白.请大家指点.
----------------------------------------------
float will have a margin of error~~~~~~~~~~~~~~~~~~
4.如果作为编号,是用int型好呀,还是用 char型好呀.比如员工编号这类东西?
----------------------------------------------
When use int,the performanct will be better. But all rely on your design and needs
----------------------------------------------
When use int,the performanct will be better. But all rely on your design and needs
---------------------------------------------
我一直在用char型做编号,可是看到很多示例都是用int型做编号,所以想问问,用int型比char型好在哪里呢?
我觉得char型好,因为位数相同,对员工编号来说,如果用int,我觉得不好,因为员工的编号不可能连位数都不一样呀,不知我说的对不对.