Skip to content

Instantly share code, notes, and snippets.

@jleedev
Created January 30, 2022 15:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jleedev/b8eb3fcb97b5a443071dde47a1e8e8f6 to your computer and use it in GitHub Desktop.
Save jleedev/b8eb3fcb97b5a443071dde47a1e8e8f6 to your computer and use it in GitHub Desktop.
mysql> create table t(f float);
Query OK, 0 rows affected (0.02 sec)
mysql> insert into t(f) values (999999),(1000000),(1000001);
Query OK, 3 rows affected (0.00 sec)
Records: 3 Duplicates: 0 Warnings: 0
mysql> select * from t;
+---------+
| f |
+---------+
| 999999 |
| 1000000 |
| 1000000 |
+---------+
3 rows in set (0.00 sec)
mysql> select distinct f from t;
+---------+
| f |
+---------+
| 999999 |
| 1000000 |
| 1000000 |
+---------+
3 rows in set (0.00 sec)
mysql> select 1*f from t;
+---------+
| 1*f |
+---------+
| 999999 |
| 1000000 |
| 1000001 |
+---------+
3 rows in set (0.00 sec)
mysql>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment