Jump to content

[SOLVED] insert integer


limitphp

Recommended Posts

If you put the quotes around it, the query will be a bit slower. Will not matter a lot with small query like that.

 

BTW: INT(1) still takes 4 bytes. For small numbers use TINYINT.

 

Thanks, I'll go back and change my flag columns to tinyints.

The value of verify will only be 1 or 0.  So, that is technically 1 byte, right?

 

 

It slows down if you put quotes around INTs or quotes around any values, like the variable names?

Thanks, I'll go back and change my flag columns to tinyints.

The value of verify will only be 1 or 0.  So, that is technically 1 byte, right?

 

It slows down if you put quotes around INTs or quotes around any values, like the variable names?

 

Technically it would be one bit, but you can't get that low :P The least you can get is 8 bits a.k.a. one byte.

 

It slows down, when it gets a string (a value in quotes, nevermind if put directly or from variable) and has to change it to integer.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.