Custom sql parameter using IN clause in gridview - c #
When I posted the following SQL query,
SELECT
[ItemID], [Name], [RelDate], [Price], [Status]
FROM
[item_k]
WHERE
[ItemID] IN (" + itemIDs + ")
in custom sql gridview statements, it gets converted to
SELECT
ItemID, Name, RelDate, Price, Status
FROM
item_k
WHERE
(ItemID IN ([ + itemIDs + ]))
and when i execute the request the following error is displayed
SQL Execution Error
Invalid column name '+ itemIDs+'
What's the problem?
thanks
0
a source to share
3 answers