Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread EXTRACT--can't use a parameter?
Thu, Nov 8 2007 2:54 PMPermanent Link

"A Roberts"

I am attempting to use a parameterized query whereby I select based on a
parameterized year.  The parser trips on:

SELECT * From Schedule WHERE EXTRACT(Year From StartDate) = :YR ORDER BY
StartDate;

Is there a problem with my syntax, or is DBIsam just incapable of using a
parm with EXTRACT?

Thanks.


Fri, Nov 9 2007 1:19 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com


<< I am attempting to use a parameterized query whereby I select based on a
parameterized year.  The parser trips on:

SELECT * From Schedule WHERE EXTRACT(Year From StartDate) = :YR ORDER BY
StartDate;

Is there a problem with my syntax, or is DBIsam just incapable of using a
parm with EXTRACT? >>

Two things:

1) This is the ElevateDB newsgroup Smiley
2) What version of DBISAM are you using ?  I tried a similar query here and
it works just fine with 4.25 B7.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image