Download Using Single-Row Functions to Customize Output

Document related concepts

Entity–attribute–value model wikipedia , lookup

Microsoft Jet Database Engine wikipedia , lookup

Extensible Storage Engine wikipedia , lookup

Database wikipedia , lookup

Clusterpoint wikipedia , lookup

Microsoft SQL Server wikipedia , lookup

Functional Database Model wikipedia , lookup

Open Database Connectivity wikipedia , lookup

Database model wikipedia , lookup

Relational model wikipedia , lookup

SQL wikipedia , lookup

Oracle Database wikipedia , lookup

PL/SQL wikipedia , lookup

Transcript
Using the TO_CHAR Function with Numbers
SELECT TO_CHAR(salary, '$99,999.00') SALARY
FROM
employees
WHERE last_name = 'Ernst';
3 - 40
Copyright © 2006, Oracle. All rights reserved.
Guidelines
• The Oracle server displays a string of number signs (#) in place of a whole number whose
digits exceed the number of digits that is provided in the format model.
• The Oracle server rounds the stored decimal value to the number of decimal places that is
provided in the format model.
Oracle Database 10g: SQL Fundamentals I 3 - 40