SQL query to change attribute position in wp_postmeta table?

Have a tricky situation and didn’t found any other ways of solving that yet.
Trouble is – I have attributes and values in postmeta, but those attributes are in wrong places (Attributes, not attribute values). To change positions in manual way – could take ages for me. While checked postmeta table contents – I see there’s a definition of attribute position.

Question: How should query look like in SQL to find attribute by inserted name and change his position?

Partial content of the table:


Is that possible at all to change it without changing/breaking/touching any other information in table?

Any ideas appreciated!