>I have composed a table of JDBC literals. It may contain errors or be
>incomplete. Please have a look and pass on improvements.
>
>See http://mindprod.com/jgloss/jdbc.html#LITERALS

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
> On Sat, 01 Sep 2007 09:48:55 GMT, Roedy Green
> <see_website@mindprod.com.invalid> wrote, quoted or indirectly quoted
[quoted text clipped - 7 lines]
> the one remaining puzzle is how do you specify a long numeric literal
> in SQL.
SQL92 doesn't have a specific literal for long, or int for that
matter. Integers and decimals are covered by 'exact numeric literal':
digits [ . [ digits ] ] | . digits
There is no specified limit on the number of digits.
Alternatively, you can use prepared statements (as suggested) or:
{fn convert('10',SQL_BIGINT)}
Other suggestions for the Literals section:
+ SQL92 only specifies using single quotes for delimiting string, with
two single quotes to indicate embedded quotes. Double-quotes are
reserved for quoting names. This is not true for all SQL DBMS vendors,
though.
+ Timestamp literals have an optional fraction for seconds - [.f...].
Suggestions for the Functions section:
+ The 3rd argument for LOCATE is optional.
+ TIMESTAMPADD and TIMESTAMPDIFF have a first argument (interval) that
the form - SQL_TSI_XXXX. Where XXXX is YEAR, DAY, SECOND, ... It
specifies the interval being used in the calculation.
+ The second argument for CONVERT is prefixed with SQL_.
--
Lee Fesperman, FFE Software, Inc. (http://www.firstsql.com)
==============================================================
* The Ultimate DBMS is here!
* FirstSQL/J Object/Relational DBMS (http://www.firstsql.com)
Roedy Green - 04 Sep 2007 10:45 GMT
On Tue, 04 Sep 2007 01:21:12 -0700, Lee Fesperman
<firstsql@ix.netcom.com> wrote, quoted or indirectly quoted someone
who said :
>Other suggestions for the Literals section:
Thanks Lee. Your suggestions are now incorporated.

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com