I'm new to MySql. So I don't know many things like Casting of data types. How can I convert bool to int in MySql. And also how can I convert decimal to Int in MySql.
-
do you want to change datatype of columns ??Naveed– Naveed2011-06-07 04:56:54 +00:00Commented Jun 7, 2011 at 4:56
-
@NAVEED : I want to cast the Bool type to Int for ex: DECLARE bo BOOL; SET bo = TRUE; SELECT CAST(bo AS INT);Fasal– Fasal2011-06-07 05:05:30 +00:00Commented Jun 7, 2011 at 5:05
Add a comment
|