ANTON KADACH

Generation

text to sql syntaxWed, 18 Jan 2023

Оберни все поля одинарными кавычками и добавить их в функцию concat()( в одну) war.address AS pickup_address, war.geo_id AS pickup_geo_id, fias_id AS consumer_fias_id postgresql

SELECT concat( '{', '"address":"', address, '",', '"geo_id":"', geo_id, '",', '"fias_id":"', fias_id, '"}' ) FROM warehouse_addresses ORDER BY address;

Questions about programming?Chat with your personal AI assistant