Assume the following has completed correctly:
CREATE TABLE test ( charField varchar(5) );
What is the end difference between the following two statements?
INSERT INTO test (charField) VALUES ("123456");
INSERT INTO test (charField) VALUES ("12345 ");
Answer: In both cases, the inserted value is trimmed to ‘12345’. For the first, a warning is issued. For the second, only whitespace is trimmed, so no warning.

Leave a Reply