Re:SQL statements don't accept "/"
Quote
Jing-Z...@UIOWA.EDU (Jing Zhou) wrote:
> Hi, Everybody:
> When I put something below to SQL property of TQuery,
> Select grt/prog, id , sdept From tableX
> where ______
> It does't recognize "/" of the field grt/prog, what should I do?
> Jing
Are you saying you can't get the result of the division
(with a FieldByName)? Try something like this:
Select grt/prog RESULT, id , sdept From tableX
where ______
then you could do :
res := TQuery.FieldByName('result').AsInteger;
or something similar. Essentially, you're defining
a name for the column.
Hope I answered the right question :)
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Chris Kasten
Programmer/Analyst
#include <std/disclaimer.h>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=