OpenJS > Scripts > Decrypting Anti-Spamming Email Encryption We have all seen people encrypting their email address when printing it online. These is to prevent the spam bots from reading it.
Syntax
Description of the illustration decode.gif
Purpose
DECODE
compares expr
to each search
value one by one. If expr
is equal to a search
, then Oracle Database returns the corresponding result
. If no match is found, then Oracle returns default
. If default
is omitted, then Oracle returns null.The arguments can be any of the numeric types (
NUMBER
, BINARY_FLOAT
, or BINARY_DOUBLE
) or character types.- If
expr
andsearch
are character data, then Oracle compares them using nonpadded comparison semantics.expr
,search
, andresult
can be any of the datatypesCHAR
,VARCHAR2
,NCHAR
, orNVARCHAR2
. The string returned is ofVARCHAR2
datatype and is in the same character set as the firstresult
parameter. - If the first
search-result
pair are numeric, then Oracle compares allsearch-result
expressions and the firstexpr
to determine the argument with the highest numeric precedence, implicitly converts the remaining arguments to that datatype, and returns that datatype.
The
search
, result
, and default
values can be derived from expressions. Oracle Database uses short-circuit evaluation. That is, the database evaluates each search
value only before comparing it to expr
, rather than evaluating all search
values before comparing any of them with expr
. Consequently, Oracle never evaluates a search
if a previous search
is equal to expr
.Oracle automatically converts
expr
and each search
value to the datatype of the first search
value before comparing. Oracle automatically converts the return value to the same datatype as the first result
. If the first result
has the datatype CHAR
or if the first result
is null, then Oracle converts the return value to the datatype VARCHAR2
.In a
DECODE
function, Oracle considers two nulls to be equivalent. If expr
is null, then Oracle returns the result
of the first search
that is also null.The maximum number of components in the
DECODE
function, including expr
, searches
, results
, and default
, is 255.See Also:
'Datatype Comparison Rules' for information on comparison semantics, 'Data Conversion' for information on datatype conversion in general, 'Floating-Point Numbers' for information on floating-point comparison semantics, and 'Implicit and Explicit Data Conversion' for information on the drawbacks of implicit conversionExamples
This example decodes the value
Question: What is an MSE File?warehouse_id
. If warehouse_id
is 1, then the function returns 'Southlake
'; if warehouse_id
is 2, then it returns 'San Francisco
'; and so forth. If warehouse_id
is not 1, 2, 3, or 4, then the function returns 'Non domestic
'.Have you found, downloaded or received an MSE file, but don't know which software program is required to open it?
Before attempting to open an MSE file, you'll need to determine what kind of file you are dealing with and whether it is even possible to open or view the file format.
Answer: Files which are given the .MSE extension are known as Encrypted Maxscript files, however other file types may also use this extension. If you are aware of any additional file formats that use the MSE extension, please let us know.
How to open a MSE file:The best way to open an MSE developer file is to simply double-click it and let the default assoisated application open the file. If you are unable to open the file this way, it may be because you do not have the correct application associated with the extension to view or edit the MSE file.
This developer file format was added to our database by a visitor to this site, but no additional information was provided. We have yet to investigate this file type further, or there was not enough information available at the time to report accurately on the format.
Please check back soon for more information as we are constantly updating our file descriptions based on search frequency.
Tip: Try to open the MSE file using a text-editor such as Notepad, as many file types contain simply contain unformatted plain-text and can viewed correctly using this method.