I need to combine columns with select statment such that it create a tab delimited file.
For. e.g
Select ColumnA || "," || ColumnB
Above statement will create Comma Seperate File. What should I write to create Tab delimited file?
Please let me know.
MySQL:
select concat(ColumnA, "\t" ,ColumnB)
SQL Server:
select ColumnA + char(9) + ColumnB
Oracle:
select ColumnA || chr(9) || ColumnB
If I understand your question, you should try this:
SELECT CONCAT(ColumnA, '\t', ColumnB)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With