I recently loaded a dataset into BigQuery, and all my column names use underscores (_) instead of spaces. For example:
car_type instead of Car Type
customer_name instead of Customer Name
I would like to transform these column names by replacing underscores with spaces, ideally in a query or as part of a transformation step.
I attempted using REPLACE(column_name, '_', ' '), but I am not sure how to apply it to all column names dynamically.
How can I update my column names in BigQuery to replace underscores with spaces while preserving readability? Is there a way to do this dynamically for all columns in a table?