Why MySql returns numbers instead boolean? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Why MySql returns numbers instead boolean?

when i reaturn boolean fild type in base php treat it like is number?

27th Jun 2018, 3:14 PM
Vlastimir Bulatovic
Vlastimir Bulatovic - avatar
3 Answers
+ 1
Well this article is very good ,as i can see TINYINT range is numbers from 0 to 255 ,BOOLEAN can be 0 (false) or 1(true),but my question is why there is no boolean like in c or java?
27th Jun 2018, 3:41 PM
Vlastimir Bulatovic
Vlastimir Bulatovic - avatar
0
what is the use of escape sequence
18th Sep 2018, 7:52 PM
ASHISH SHARMA
ASHISH SHARMA - avatar
0
what is the use of escape sequence in elementary concept of python
18th Sep 2018, 7:53 PM
ASHISH SHARMA
ASHISH SHARMA - avatar