search in mysql column 3 when found, return contents of column1 only
Posted: Tue Mar 12, 2019 7:49 am
Hi, I have the code below which returns all columns in mysql. How can I get it to work that it searches only in COL 3 and if found returns the content of COL 1 only?
thank you!
put "SELECT * FROM `TABLE 1` WHERE `COL 3` LIKE '%"&zoekopdit&"%'" into tSQL
put revDataFromQuery(tab, cr, gConnectionID, tSQL) into tData
put tData into field "Data"
thank you!
put "SELECT * FROM `TABLE 1` WHERE `COL 3` LIKE '%"&zoekopdit&"%'" into tSQL
put revDataFromQuery(tab, cr, gConnectionID, tSQL) into tData
put tData into field "Data"