- Aug 28, 2001
- 52,844
- 1,049
- 126
field used to be comparing varchar to char such as this and it worked ok:
WHERE firstname = username
now the field is comparing long varchar vs. char:
WHERE thefullname = username
and it's returning this error:
Improper use of a string column, host variable, constant, or
function "". SQLSTATE=42907
Is there any way I can still compare these two fields ? It must be these fields so maybe some kind of conversion function on either of them would work ?
Thanks
WHERE firstname = username
now the field is comparing long varchar vs. char:
WHERE thefullname = username
and it's returning this error:
Improper use of a string column, host variable, constant, or
function "". SQLSTATE=42907
Is there any way I can still compare these two fields ? It must be these fields so maybe some kind of conversion function on either of them would work ?
Thanks