Why the two sql result is different?
Posted by:
翊玮 赵
Date: December 22, 2024 09:27PM
IN Mysql 8.0.26, the following two select sql result is different, why?
CREATE TABLE testjs(js json);
CREATE TABLE testtext(tx text);
INSERT INTO testjs values('"abc"');
INSERT INTO testext values('abc');
SELECT js = tx FROM testjs, testtext;
-------------------------------------------------
1
SELECT * FROM testjs, testtext WHERE js = tx;
-------------------------------------------------
empty set
IS the compare in where clause caused different?
Subject
Written By
Posted
Why the two sql result is different?
December 22, 2024 09:27PM
Sorry, only registered users may post in this forum.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.