0
For example only:
I am trying to select where a zero will be added to the left if the number is less than 10.
Examples:
SELECT COUNT(1);
Returns => 1
SELECT LPAD(1, 2, 0);
Returns => 01
SELECT LPAD(COUNT(1), 2, 0);
Returns => BLOB
How do I use the function LPAD with COUNT, or one that does something similar?
I tested your code on my server and it worked, which version of yours
MySQL
?– Roberto de Campos
Strange, for me it always returns "blob". The mysql version here is: 5.6.39-cll-Lve
– alan
I tested on another server and returned correctly too, only for information the version of this server is
5.6.39-83.1
.– Roberto de Campos