Suppose I have a MySQL table called MyTable, that looks like this:
+----+------+-------+ | Id | Type | Value | +----+------+-------+ | 0 | A | 1 | |
Just add the following line before your select statement:
INSERT MyTable (Id, Type, Value)