I have two tables. Table A is an operational store and table B is the destination table.
Table A DDL: Column A Varchar(1000)
Table B DDL: Column B Varchar(250)
So I'm trying to do an insert of truncated column A as so: Insert into table B (select left(table a.column a, 249)) , but it gives the error
"error: Value too long for character type"
I have also tried substring to try and truncate the text but to no avail. Please note, that there is also Arabic text in Column A - but it hasn't been an issue in Table A.
Any help / suggestions would be much appreciated!
Value too long for character varying (250). Though Redshift isn't really PostgreSQL, so who knows. Show the full, exact error message and the exact SQL you are running. - Craig Ringer