Try this example
[{"id":"3e9e25c4f6c0d19e","type":"inject","z":"b9860b4b9de8c8da","name":"","props":[{"p":"msg.payload[0][\"avg(IN01)\"]","v":"77.7317","vt":"num"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"SELECT avg(IN01) FROM COMPTEUR_GENERAL;","x":230,"y":80,"wires":[["cf43de2fe6b665d1","7082854e73fb5f27"]]},{"id":"cf43de2fe6b665d1","type":"debug","z":"b9860b4b9de8c8da","name":"debug 324","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":310,"y":140,"wires":[]},{"id":"7082854e73fb5f27","type":"change","z":"b9860b4b9de8c8da","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"msg.payload[0][\"avg(IN01)\"]","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":420,"y":80,"wires":[["a96c0f091f51f463"]]},{"id":"a96c0f091f51f463","type":"debug","z":"b9860b4b9de8c8da","name":"debug 325","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":550,"y":120,"wires":[]}]
How to import a flow
These links may help
working with messages
essentials videos