Hi

I use H2 1.4.178 version.

I have 2 tables R and C

R and C have exactly the same columns.
Column two is name respectively R_2 and C_2 for R and C table. R_2 and C_2 
are VARCHAR(15)

Both tables contains the following line:
R_1 |  R_2 | R_3
9504|21286|21286

C_1 |  C_2 | C_3
9504|21286|21286

When i run the following request :
SELECT *,LENGTH(R_2) FROM R WHERE R_2 LIKE '21284'; -> I get 9504 | 21286 | 
21286 | 5
SELECT *,LENGTH(C_2) FROM C WHERE C_2 LIKE '21284'; -> I get no result!!!

If i ran that for C table:
SELECT *,LENGTH(C_2) FROM C WHERE C_2 LIKE '%21284'; -> I get the result 
line : 9504 | 21286 | 21286 | 5

Why must i add a % to get the line although i don't have blank character 
before 21286 for table C? Even, the length() fonction returns 5 as length!

Any clue what's wrong?

Regards
Laurent TOURREAU

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply via email to