2
I have two situations in the search inside Mysql that I need to exchange the code for a literal data.
Field: Pgto (possible data: S or N)
In the search if the Pgto field is N I display on the screen No and if it is S I display Yes.
The other situation is the Status field (possible data: 1, 2, 3 and 4), in which if in the search for 1 I display Pgto Pending, if it is 2 I display Released, and so on.
How do I do this within Mysql Select.
Brenno, check if the case matches: https://www.w3schools.com/sql/func_mysql_case.asp
– Daniel Mendes