10.07.2015 Views

Programming Guide - Actian

Programming Guide - Actian

Programming Guide - Actian

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

ExpressionsLiteralsThere are two basic types of literals: string and numeric. OpenROAD alsosupports hexadecimal constants and the null constant.String LiteralsString literals are represented by a sequence of characters enclosed in singlequotation marks, for example:'J. J. Jones''Hendersonville''17-Aug-1988 10:00'You can include a literal single quote in a string literal by typing two singlequotes (for example, 'J. J. Jones''s').Numeric LiteralsNumeric literals include integers and floating-point numbers, for example:12097.77Hexadecimal ConstantsDo not enclose numeric literals in quotes.You can specify literals of type money either as strings ('$10.50') or numbers(10.5).Hexadecimal constants are a special version of string literals. They representcharacters expressed in hexadecimal notation and are most often used fornonprintable characters such as a newline character. Hexadecimal constantsare single-quoted strings of hexadecimal digits (0–9 and A–F) preceded by theletter X, for example:X'10A665B'X'00FF'Language Elements 37

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

Saved successfully!

Ooh no, something went wrong!