1

im creating a csv file from sql and i must have column title name with comma like:

id,name,company
1,ART,Oracle

select ( id || ',' || name || ',' || company ) as **????????** from emplo

is there any way to display a sql column title with commas?

4

2 回答 2

2

用于"包含您的列名。

select ( id || ',' || name || ',' || company )  "id,name,company" 
from emplo
于 2018-10-30T08:44:18.000 回答
0

不知道在列名中有逗号的原因是什么,但它可能只会导致将来解析 SQL 语句时出现问题。

看看这个文件...

https://docs.oracle.com/cd/B19306_01/server.102/b14200/sql_elements008.htm

于 2018-10-30T08:40:58.353 回答