wsnyder
Board Regular
- Joined
- Sep 23, 2018
- Messages
- 224
- Office Version
- 365
- Platform
- Windows
Hi all,
Using SQL Developer, Microsoft 365.
In SQL, I convert an account_number to text:
to_char(acct_nbr)
I then export to csv file
but when I open in Excel, it is a number
I then tried adding an apostrophe to the front of the acct_nbr:
''''||to_char(acct_nbr)
And exported to CSV
When I open the file an acct nbr that has 5 char's now has length of 6 char's and I can see the apostrophe.
I also tried just 2 apostrophes but when I open the file, again it is a number not text.
Thanks,
-w
Using SQL Developer, Microsoft 365.
In SQL, I convert an account_number to text:
to_char(acct_nbr)
I then export to csv file
but when I open in Excel, it is a number
I then tried adding an apostrophe to the front of the acct_nbr:
''''||to_char(acct_nbr)
And exported to CSV
When I open the file an acct nbr that has 5 char's now has length of 6 char's and I can see the apostrophe.
I also tried just 2 apostrophes but when I open the file, again it is a number not text.
Thanks,
-w