postgres-separators.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### PostgreSQL: format multiple columns into string for each row using a semicolon as separator between fields | |
``` | |
SELECT | |
FORMAT('%s; %s; %s; %s', | |
col_one, col_two, col_three, col_four) | |
AS entries | |
FROM table_name; | |
``` | |
#### easily split text-to-columns using ";" separator in spreadsheet apps |