Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The column format of oracle causes the field value to be displayed as & quot;####"

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Question:

Query a certain field, and the result field values are all "#"

Reason:

In previous queries, the same field name was formatted: col value format A20, which caused the column data to display abnormally

Solution:

1. Exit the current session and log in again

Exit

Sqlplus / nologin

Conn / as sysdba

2. Format clear: column field name clear

Namely: col value clear

Later, after careful query, the error field itself is the number data type, and the field with the same name formatted before the query is varchar2, so it is bound to make an error after formatting the column.

Since it is a number type, in addition to the two handling methods above, you can also deal with this problem in such a way as col value format 9999.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

  • Oracle 10g installation prompt: operating system version: must be 5.1 or 5.2 what to do?

    Today, this problem occurred during the installation of oracle10g. After multi-party verification, we got this solution. Share it! 1. Search for refhost.xml in the installation directory, and then add the following in the appropriate location. Notice the parenthesis pairing

    © 2024 shulou.com SLNews company. All rights reserved.

    12
    Report