About the only thing I can add here is that you should really revisit your database schema and see that you've not used other troublesome constructs. I don't know what database you are using but I strongly suggest you join a SQL list related to that database. Just for an example - this is something that I got caught up on when I started with PostgreSQL:

SELECT blah FROM blah WHERE name = ?

Since "name" is actually a datatype it's now a reserved word so I would have write that query as:

SELECT blah FROM blah WHERE "name" = ?

At that point you can generally put whatever you want inside of the double quotes (mind you - single quotes are for data, double are for identifiers) including "BiCaps" and "White Space". It gets ugly fast since the use of a feature inside of double-quotes now requires you use it *all* the time. Ugh.

So - re-read your database's documentation and this time look for reserved identifiers. Also join the right mailing list since they'll be able to help so much more than we can.


In reply to Re: Quoted dates in SQL with placeholders by diotalevi
in thread Quoted dates in SQL with placeholders by glickjd

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.