Error in
Where clause near '@' (MySQL DB)
I want
to configure a TableAdapter GetProductsByCategoryID(@CategoryID) method.
I tried
the following script: (I entered this in the TableAdapter wizard)
SELECT *
FROM Products
WHERE CategoryID = @CategoryID
The @CategoryID parameter shoud
indicate to the TableAdapter wizard that the method Iām creating will require
an input parameter of the corresponding type (namely, a nullable integer), but
it keeps returning:
Error in
Where clause near '@'
Unable
to parse query text
I'm
using a MySQL ODBC 5.1 driver.
Can
anyone help?