我如何决定Tinyint或Char更好 [英] How I Decide Tinyint Or Char Is Better
本文介绍了我如何决定Tinyint或Char更好的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
hi
tinyint(1)或char(1)更快?两者都会占用相同的空间。但性能明智哪一个更好。请帮助
谢谢
hi
tinyint(1) or char(1) is faster?? both will take same space.but performance wise which one is better.pls help
thanks
推荐答案
这与绩效无关;这是关于语义的。如果您的语义是数字,如果您要使用数字运算符或函数,请使用数字类型。在其他情况下,使用角色。
-SA
This is not about performance; this is about semantic. If your semantic is numeric, if you are going to use numerical operators or functions, use a numeric type. In other cases, use character.
—SA
这篇关于我如何决定Tinyint或Char更好的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文