Good People Visual Studio can not read the column Days to do a search with like and gives error! I believe he reads the code at once and does not find Dias created with TIMESTAMPDIFF (DAY, Date_date, Date_of_promise).
How could I organize the above code for it to do some research and show the result without giving error?
"SELECT ID, Nome_do_cliente, Data_do_compromisso, Data_de_hoje,
Data_do_cadastro, Data_de_hoje, TIMESTAMPDIFF(DAY, Data_de_hoje,
Data_do_compromisso) AS Dias FROM agenda WHERE CONCAT('Nome_do_cliente',
'Data_do_compromisso', 'Data_de_hoje', 'Dias')LIKE '%" + valorpesreb + "%'";
Error message:
Error reading data! Unknown Column 'Dias' in Where Clause