I have a table ABC
that has many columns, two of which are:
ID - VARCHAR(10)
and ROLE VARCHAR(10)
.
Now I have been trying to update the column ROLE
using the ID
and this is the query:
UPDATE TABLE ABC
SET ROLE='READ_ONLY'
WHERE ID='AB234PQR'
Now for some unknown reason, i have been getting the error - truncated incorrect integer value
. I have no idea where I am going wrong.I have been banging my head over this for a while now.
I have visited other questions with the similar title.All use convert
or some other function in where
clause, But I have not used any such thing, still it gives me the same error.
I checked the table description and it seems fine. Where can I be going wrong? Any help is appreciated.