Changing a field’s value in a select

Asked

Viewed 539 times

3

Query:

select id_cliente,nm_cliente,tp_sexo from tb_clientes;

select id_cliente,nm_cliente,tp_sexo from tb_clientes;

In my bank sex is registered as int I wish that when I make a select display Male or Female in place of 1 or 2, how do I do this?

  • 1

    Sex is another table?

  • Not a column of the clients table

1 answer

2


  • 1

    Thanks man, that’s exactly what it was!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.