mysql - using BIT as INT for storage volume efficiency -


If I understand correctly, then BIT is extremely disk efficient for my case , I know that I have only three values ​​which I would like to do, like INT s: 1 , 2 ; 3 .

Do I correct that code is different from b'00 ' 3 and b' 0 1 ?

If I type INT values ​​to INSERT VALUE S and SELECT WHERE < / Code> s, will the mails be automatically added to those questions as BIT s?

 enter  in t (beet) values ​​(b'11 '); / * 3 = 2 ^ 1 + 2 ^ 0 * / Insert t (bits) value (b'10 '); Insert / * 2 = 2 ^ 1 * / T (beet) values ​​(b '1');     

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -