12.07.2015 Views

Oracle SQL Developer

Oracle SQL Developer

Oracle SQL Developer

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Setting up the Globalization Support Environment--------------------$24,000.00$17,000.00$17,000.00In Example 11–4 an ALTER SESSION statement is issued to change the territory toGermany.Example 11–4NLS_LANGUAGE=AMERICAN, NLS_TERRITORY=GERMANY-- set NLS_TERRITORY to Germany for this sessionALTER SESSION SET NLS_TERRITORY = Germany;SELECT TO_CHAR(salary,'L99G999D99') salary FROM employeesWHERE employee_id IN (100, 101, 102);You should see results similar to the following:SALARY-------------------€24.000,00€17.000,00€17.000,00Note that the currency symbol has changed from $ to €. The numbers have notchanged because the underlying data is the same.See Also:■■<strong>Oracle</strong> Database installation guides for information on thesupported territories in the <strong>Oracle</strong> Database.<strong>Oracle</strong> Database Globalization Support Guide for more informationon supported territories11.2.4 Date and Time Parameters<strong>Oracle</strong> enables you to control the display of date and time, allowing differentconventions for displaying the hour, day, month, and year to be handled in localformats. For example, in the United Kingdom, the date is displayed using theDD/MM/YYYY format, while China commonly uses the YYYY-MM-DD format.This topic contains the following topics:■ Date Formats■ Time Formats11.2.4.1 Date FormatsDifferent date formats are shown in Table 11–1.Table 11–1Examples of Short Date FormatsCountry Description ExampleEstonia dd.mm.yyyy 28.02.2005Germany dd.mm.rr 28.02.05Working in a Global Environment 11-7

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!