A script-enabled browser is required for this page to function properly.

ORA_NLS.GET_LANG_SCALAR built-in function

This function returns the requested information about the current language. You can use GET_LANG_SCALAR to retrieve numeric data.

Syntax


FUNCTION ORA_NLS.GET_LANG_SCALAR
(attribute PLS_INTEGER)
RETURN NUMBER;

Parameters

Parameter

Description

attribute

An ORA_NLS constant or its associated integer value. For a List of constants, see ORA_NLS character constants.

Returns

A number.

Example


/*
  ** Retrieve and print out the language number
 */
BEGIN lang_num (out TEXT_IO.FILE_TYPE)
 lang_num NUMBER;


 BEGIN
  lang_num := ORA_NLS.GET_LANG_SCALAR
  (ORA_NLS.ISO_ALPHABET);
  TEXT_IO.PUT (out, "Current Language numer is %s\n",
  lang_num);
 END;

See also

About the ORA_NLS built-in package

ORA_NLS built-in package