headlines
Data types
Data types
PQL supports the following types in constants natively:
|
64-bit signed integers in the range from -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807. Integers can be specified in decimal (such as 10 or 234543), hexadecimal (such as 0xff00 or 0x00123) and octal (such as 07 or 01263). Non-integer values can be type-cast to integers using the
|
||
|
64-bit floating point number in the range 10e-308 to 10e308. You can use floating point numbers in PQL to get fractional results, or display results with decimal places. Non-floating point values can be type-cast to floats using the
|
||
|
Any sequence of characters surrounded a pair of single quotes,
such as Non-string values can be type-cast to strings using the
|
||
|
Any sequence of characters surrounded by a pair of question marks, such
as You can use regular expressions as a data type in a predicate (the WHERE clause), where it is useful for comparing a value with the regular expression to check for a match (see examples). Use question marks to delimit regular expressions because in PQL, the forward slash is reserved for paths. |
||
|
A timestamp represents either a point in time, or a duration in time. Times are
measured with a resolution of 1 microsecond from the standard unix epoch of midnight,
January 1, 1970. Timestamps can be specified as strings or integers, which must then
be type-cast to a timestamp. Integers are the number of microseconds in the interval
or since the epoch. Strings can refer to an exact time, such as
Non-timestamp values can be type-cast to timestamps using the
You must cast at least one operand to a timestamp before performing arithmetic on
timestamps. Timestamps are measured in microseconds, so PQL recognizes the following timestamp phrases:
|

