Make your own free website on Tripod.com

InstantDB Project
About InstantDB
Project Mail Lists
Short History
Reporting Bugs
Screen Shots
3rd Party Examples
FAQs

Software
Downloads
Documentation
CVS Repositories
Roadmap
License

About Enhydra.org
Who We Are
News, Articles & Events
Getting Involved
Contact Us

Community
Demos
Contributions
Resources
Case Studies
On The Edge! -NEW-
Commercial Vendors


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

InstantDB: SQL syntax question


I've poured over the IDB syntax and can't seem to figure this one out,
but perhaps it is due to a limited knowledge base of SQL....

I want to write a query of the form:
  SELECT * FROM myTBL WHERE (aColumn OR zColumn)=?

I know this isn't allowed, but is there another means for expressing
this? I need this because the WHERE clause is used in a prepared
statement and I'd prefer to pass only a single value in. I'm currently
working around this with WHERE aColumn=? OR zColumn=? and setting both
fields to the same string.

Any help/advice appreciated --
Cindy
-----------------------------------------------------------------------------
To unsubscribe from this mailing list, send email to majordomo@enhydra.org
with the text "unsubscribe instantdb" in the body of the email.
If you have other questions regarding this mailing list, send email to
the list admin at owner-instantdb@enhydra.org.