2
Good People Visual Studio can not read the column Days to make a search with like and is a mistake! I believe he reads the code at once and does not find Dias created with TIMESTAMPDIFF(DAY, Data_de_hoje, Data_do_compromise).
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:
Data reading error! Unknown Column 'Dias' in Where Clause
@Rafael, that way doesn’t solve your problem?
– David