Hi,
while migrating tables from sql server to postgresql using Wbexport I am facing some issues.
WbExport
-type=text
-file='D:\Migration\tablename.txt'
-delimiter='|'
-quotechar='^'
-encoding=UTF8
-quoteCharEscaping=duplicate
-formatFile=postgres
-header=true
-nullString=
-decimal='.'
-dateFormat='yyyy-MM-dd'
-replaceExpression='(\n|\r\n)' -replaceWith='$';
SELECT * FROM DBNAME.dbo.tablename;
I am replacing carriage return with dollar sign but I have a value in a column which doesn't contain any characters (i.e empty) that value is considered as NULL and I don't want that.
How can I replace empty character with any other character.
I have tried below logic but it is not working
1. -replaceExpression='(\n|\r\n)'|char(0) -replaceWith='$';
2. -replaceExpression='(\n|\r\n|\0)' -replaceWith='$';
3.-replaceExpression=char(0) -replaceWith='$'
-replaceExpression='(\n|\r\n)' -replaceWith='$';