I came across a subtle SQL problem when I needed to use a value from a field inside a LIKE% ..% statement.
Example:
SELECT t1.Notes, t2.Name FROM Table1 t1, Table2 t2 WHERE t1.Notes LIKE '%t2.Name%'
This is just an example from the top of my head to show what I need to do (I know this will not work). I need to use the t2.Name value inside LIKE% ..%
I think this is trivial when you know it;)
sql mysql sql-like
Max Kielland Dec 12 2018-12-12T00: 00Z
source share