I am getting a conversion error as explained below:
- Created an insert into a Table using SHA1. The filed is binary
- When I try to query the table with this field, I get an error shown below.
Do I need to convert binary datatype to Varhcar for querying?
Cannot convert parameter ''D832F2E3518C72414C9FAC5131951F3DADCBG51A'' of type [VARCHAR(40)] into expected type [BINARY(8388608)]
insert into test
select SHA1(concat(EMPNAME,'|',ETYPE)) Field1
from "TABLE1
select * from Table1 where Field1 ='D832F2E3518C72414C9FAC5131951F3DADCBG51A'