In my database (MySQL) table, has a column with 1
and 0
for represent true
and false
respectively.
But in SELECT
, I need it replace for true
or false
for printing in a GridView.
How to I make my SELECT
query to do this?
In my current table:
id | name | hide
1 | Paul | 1
2 | John | 0
3 | Jessica | 1
I need it show thereby:
id | name | hide
1 | Paul | true
2 | John | false
3 | Jessica | true
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…