Question : how to store zero values in the INT data type

I have a integer data type int4, int8, int11... when i store "09343"... it is storing as 9343..?

how can i store the zero in the field

Answer : how to store zero values in the INT data type

Again, I repeat. You can keep type integrity (VARCHAR) "string format" yet enable AGGREGATE FUNCTIONS such as MAX, MIN, etc. and ALSO BETWEEN statements VIA the CAST() function DOING temporary runtime conversion to number!

=NerdsOfTech
1:
SELECT MAX(CAST(strNumber AS SIGNED)) FROM tablename WHERE CAST(strNumber as SIGNED) IS BETWEEN 500 AND 1800;
Open in New Window Select All
Random Solutions  
 
programming4us programming4us