Hi,
First of all let me apologise if I'm in the wrong place and for the naivity of my question, I'm new to SQL queries etc, so please do point me in the right direction of the correct forum if this isn't right.
Basically, a product we use stores records into a field in the format 12345-12345. The field is described as PK, Char(16), not null.
What I simply want to do is apply a WHERE statement to a query that allows me find a specific value, however it doesn't work and I'm guessing the presence of the '-' could be the reason why?
The error I receive is as follows:
Syntax error converting the varchar value ' 1-00001' to a column of data type int.
Can anyone please advise how I can get round this if possible?
Regards,
J
First of all let me apologise if I'm in the wrong place and for the naivity of my question, I'm new to SQL queries etc, so please do point me in the right direction of the correct forum if this isn't right.
Basically, a product we use stores records into a field in the format 12345-12345. The field is described as PK, Char(16), not null.
What I simply want to do is apply a WHERE statement to a query that allows me find a specific value, however it doesn't work and I'm guessing the presence of the '-' could be the reason why?
The error I receive is as follows:
Syntax error converting the varchar value ' 1-00001' to a column of data type int.
Can anyone please advise how I can get round this if possible?
Regards,
J