To get their fields such as: "qwer"; There is a space behind qwer
SQL 1: select * from table where STR like '% qwer %'; Query less than qwer behind also has a space
SQL 2: select * from table where STR like 'qwer %'; I can query qwer behind also has a space
SQL 3: select * from table where STR like '% qwer %'; I can query qwer behind also has a space also has a space behind the second %
Don't know what's the difference between the three SQL why doesn't seem to find the SQL query results once again thank you for the great god worship!!!!!!
CodePudding user response:
SQL2 understandableWhat is the difference between SQL3 and SQL1?