Subject | Re: [firebird-support] BLOB fileld headache |
---|---|
Author | Markus Ostenried |
Post date | 2005-05-11T22:39:26Z |
At 23:18 Wednesday, 11.05.2005 +0200, Tutti Fruti wrote:
I don't think you can compare blobs in an SQL statement. You would have to
use an UDF for this task. A much faster way would be to save the hash value
of the string in a third column and use this value to search for an
existing string.
HTH,
Markus
>Table STRINGS has columns[snip]
>SID (int, PK)
>ORIGINALSTRING (BLOB SUB_type 1)
>sql.CommandText = "SELECT SID FROM STRINGS WHERE ORIGINALSTRING=@orig";Hi,
I don't think you can compare blobs in an SQL statement. You would have to
use an UDF for this task. A much faster way would be to save the hash value
of the string in a third column and use this value to search for an
existing string.
HTH,
Markus