Oracle SQL如何导出空值
与如何将Oracle SQL开发人员输出的记录复制到Excel Sheet
我正在使用Oracle SQL开发人员。我有一些查询在结果网格中获得一些无效的值。我在Excel中剪切/粘贴了这些值,但无效粘贴为空,而不是“零”,因此很难在包含空格的单元格中找到它们。 请问有什么方法可以在Excel中出口为“ null”?
谢谢。
in relation with how to copy the records from output of oracle SQL developer to excel sheet
I'm using Oracle SQL developer. I've some queries which get some null values in the result grid. I'd cut/paste these values in Excel but null are pasted as empty, not as "null", so difficult to find them among cells that contains spaces.
Is there any way to export null as "null" in Excel please?
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您的列是DataType varchar2的,则:
如果您的列是数字或日期数据类型,则只需使用to_char:
If your column is of datatype varchar2 then:
If your column is of number or date datatype then just convert the non null values to string using to_char:
您有多个选项:
使用
为null
decode()
与decode(< col>,null,'null','null',< col>)代码>
You have multiple options:
IS NULL
comparisonDECODE()
with something likeDECODE(<col>, NULL, 'NULL', <col>)