P E Schoen
2011-02-16 06:19:27 UTC
I have been experimenting with SQL statements in the database portion of my
www.ortmaster.com application, and I have found some expressions that seem
to be unsupported. I'm not a Query expert, but I tried some fairly common
statements and got errors, so I'd like to know what is or is not allowed.
Some things that work are as follows:
SELECT * FROM ORTRES WHERE
TESTDATE > "8/18/2010" AND
RECLID < "Test2" AND
NOT TESTRESULT LIKE "*%"
ORDER BY TESTDATE DESC
SELECT * FROM ORTRES WHERE
TESTDATE BETWEEN "8/18/2010"
AND "12/3/2010"
SELECT * FROM ORTRES WHERE
TESTTIME > "18:23"
And these do not:
SELECT * FROM ORTRES
WHERE TESTDATE < NOW()
WHERE TESTDATE < CURDATE()
WHERE TESTDATE < TODAY()
I have not been able to find specific information on the BDE as to what is
supported. Some other resources I found are:
http://www.w3schools.com/sql/default.asp
http://delphi.about.com/od/database/l/aa060199.htm
(this series may be a good
tutorial for me to recommend to customers)
There's not much on the usenet database newsgroups, and especially the
Borland groups seem dead.
Thanks,
Paul
www.ortmaster.com application, and I have found some expressions that seem
to be unsupported. I'm not a Query expert, but I tried some fairly common
statements and got errors, so I'd like to know what is or is not allowed.
Some things that work are as follows:
SELECT * FROM ORTRES WHERE
TESTDATE > "8/18/2010" AND
RECLID < "Test2" AND
NOT TESTRESULT LIKE "*%"
ORDER BY TESTDATE DESC
SELECT * FROM ORTRES WHERE
TESTDATE BETWEEN "8/18/2010"
AND "12/3/2010"
SELECT * FROM ORTRES WHERE
TESTTIME > "18:23"
And these do not:
SELECT * FROM ORTRES
WHERE TESTDATE < NOW()
WHERE TESTDATE < CURDATE()
WHERE TESTDATE < TODAY()
I have not been able to find specific information on the BDE as to what is
supported. Some other resources I found are:
http://www.w3schools.com/sql/default.asp
http://delphi.about.com/od/database/l/aa060199.htm
(this series may be a good
tutorial for me to recommend to customers)
There's not much on the usenet database newsgroups, and especially the
Borland groups seem dead.
Thanks,
Paul