I have a SQL that has one of the columns that stores value that begins with a hyphen '-'. When I tried to export it to csv I get an Invalid Name error. When I view it in the SQL editor it shows correctly (Sample : -Coke).
Is there anyway I could have this value saved successfully in the csv file ?
Given below is a sample view of the data
Name
-Coke
-Pepsi
Sample SQL I used:
SELECT name FROM sales WHERE name like '-%';
I am using a Redshift DB.
column data formatas text