når jeg angiver værdier for skabelonparametre, kører dette fint for mig:
select * from <xyz, varchar,YourTable> WHERE ID<=1000 AND ID>=20000
måske har du ikke alle parameters "<" og ">" parret korrekt
REDIGER Jeg kan se problemet nu:
SELECT * FROM <xyz, varchar,YourTable> WHERE ID<=1000 AND ID>=20000
AND <xyz2,varchar,YourColumn> IS NOT NULL
resulterer i:
SELECT * FROM YourTable WHERE IDYourColumn IS NOT NULL
prøv at lave "<"-tegnet til en parameter, sådan her:
SELECT * FROM <xyz, varchar,YourTable> WHERE ID<lessthan,char,<>=1000
AND ID>=20000 AND <<xyz2,varchar,YourColumn> IS NOT NULL
det resulterer i:
SELECT * FROM YourTable WHERE ID<=1000
AND ID>=20000 AND YourColumn IS NOT NULL
ELLER opdele linjerne, linjeskift ser ud til at gøre en forskel:
SELECT * FROM <xyz, varchar,YourTable> WHERE ID<=1000 AND ID>=20000
AND <xyz2,varchar,YourColumn> IS NOT NULL
resulterer i:
SELECT * FROM YourTable WHERE ID<=1000 AND ID>=20000
AND YourColumn IS NOT NULL