You are looking for the trim() function.
Alright, here is your example
SELECT TRIM(LEADING '0' FROM myfield) FROM table
More Related Contents:
- If two columns are 1 then make new column
- How to store Emoji Character in MySQL Database
- MySQL: Quick breakdown of the types of joins [duplicate]
- Any way to select without causing locking in MySQL?
- Log all queries in mysql
- Truncate all tables in a MySQL database in one command?
- Retrieving the last record in each group – MySQL
- Cast from VARCHAR to INT – MySQL
- Find distance between two points using latitude and longitude in mysql
- How to convert result table to JSON array in MySQL
- Solution to “subquery returns more than 1 row” error
- Adding multiple columns AFTER a specific column in MySQL
- Storing SHA1 hash values in MySQL
- MySQL varchar index length
- Downloading MySQL dump from command line
- DOUBLE vs DECIMAL in MySQL
- Can a MySQL trigger simulate a CHECK constraint? [duplicate]
- Ruby on Rails 3 Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ on OSX
- MYSQL_ROOT_PASSWORD is set but getting “Access denied for user ‘root’@’localhost’ (using password: YES)” in docker container
- Terminating idle mysql connections
- MySQL – Fetching lowest value
- How to alias a field or column in MySQL?
- What to do when you need integers larger than 20 digits on mysql?
- How to update JSON data type column in MySQL 5.7.10?
- ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysql.sock’ (2)
- Autostart MySQL Server on Mac OS X Yosemite/El Capitan
- MySQL ‘select for update’ behaviour
- why this mysql event can’t get run?
- Last index of a given substring in MySQL
- Generate serial number in mysql query