Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » DBISAM Technical Support » Support Forums » DBISAM Client/Server » View Thread |
Messages 1 to 2 of 2 total |
This query runs great until I use this parameter... |
Tue, Feb 23 2016 5:58 PM | Permanent Link |
Allan Roberts | What is wrong with using the parameter ST2? If I use a literal, then this query executes and returns the correct value in MVal. Ref is a string parameter, all the others are integer type. select Max(CAST(SubString(Ref From :ST2 for 20) as Integer)) as MVal from "MEMORY\AsmTest" Where (Number = :Num) AND (LEFT(Ref for :ST) = :Ref) Aren't parms allowed within a substring function? Thanks! |
Wed, Feb 24 2016 11:26 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Allan,
<< What is wrong with using the parameter ST2? If I use a literal, then this query executes and returns the correct value in MVal. >> You can't use parameters in the SELECT clause, with the exception being sub-queries in a SELECT expression, where you *can* use parameters, but only in their JOIN/WHERE clauses. Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Friday, April 19, 2024 at 07:09 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |