Tag

string_to_array

0 views collected around this technical thread.

Qunar Tech Salon
Qunar Tech Salon
Apr 30, 2015 · Databases

Parsing and Normalizing Space-Delimited Valid Periods in PostgreSQL

The article demonstrates how to split a space‑separated "validperiods" column into separate begin, end, and price fields in PostgreSQL using string_to_array, to_timestamp, regexp_replace, and unnest to transform the data into a readable tabular format.

PostgreSQLSQLdata normalization
0 likes · 8 min read
Parsing and Normalizing Space-Delimited Valid Periods in PostgreSQL