Re: Doubt about using Parametrized query with IN
- From: "Darren Shaffer" <darrenshaffer@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 27 Oct 2005 08:47:41 -0600
you can't do that - the ? is a single value parameter and cannot
specify a range of values which is expected with an IN clause.
the typical usage for parameters in SQL CE is:
SELECT * FROM Defects WHERE DefectCount = ?
or
UPDATE Defects SET DefectCount = ? WHERE ID = ?
--
Darren Shaffer
..NET Compact Framework MVP
Principal Architect
Connected Innovation
www.connectedinnovation.com
"marciocamurati" <marcio.camurati@xxxxxxxxx> wrote in message
news:1130422317.345764.211220@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> My query in the case is:
>
> SELECT .... FROM table WHERE column1 IN (?)
>
.
- Follow-Ups:
- Re: Doubt about using Parametrized query with IN
- From: marciocamurati
- Re: Doubt about using Parametrized query with IN
- References:
- Doubt about using Parametrized query with IN
- From: marciocamurati
- Re: Doubt about using Parametrized query with IN
- From: marciocamurati
- Re: Doubt about using Parametrized query with IN
- From: marciocamurati
- Doubt about using Parametrized query with IN
- Prev by Date: Re: problem concat varchar for stored in table field TEXT
- Next by Date: Re: problem concat varchar for stored in table field TEXT
- Previous by thread: Re: Doubt about using Parametrized query with IN
- Next by thread: Re: Doubt about using Parametrized query with IN
- Index(es):
Relevant Pages
|