1 2 3 4 5 6 7 8 9 10
USE plato; $key = select min(key) from Input; INSERT INTO Output SELECT * FROM ( SELECT $key as key ) where key > '';