My database is Latin1_General_ BIN.
My table is called CUSTOMER.
One column in this table (descr_id) is defined as char(10).
When I query…
SELECT *
FROM CUSTOMER
WHERE descr_id = ‘ABCD’
Result set from above query is:
descr_id
ABCD
I get the same result back as I do when…
SELECT *
FROM CUSTOMER
WHERE descr_id = ‘ABCD ‘ (notice ABCD string has padded spaces).
Result set from above query is:
descr_id
ABCD
Does anyone know why this is the case? I would expect second query to
not to return anything.
Many thanks,
Igor
My table is called CUSTOMER.
One column in this table (descr_id) is defined as char(10).
When I query…
SELECT *
FROM CUSTOMER
WHERE descr_id = ‘ABCD’
Result set from above query is:
descr_id
ABCD
I get the same result back as I do when…
SELECT *
FROM CUSTOMER
WHERE descr_id = ‘ABCD ‘ (notice ABCD string has padded spaces).
Result set from above query is:
descr_id
ABCD
Does anyone know why this is the case? I would expect second query to
not to return anything.
Many thanks,
Igor
Comment