I am new to MySql. Therefore, I do not know many things, such as Data Casting. How to convert bool to int in MySql. And also, how can I convert the decimal value to Int in MySql.
Pointing the boolean type to integer:
SELECT CAST(1=1 AS SIGNED INTEGER); /* 1 */
The same goes for decimal numbers and strings:
SELECT CAST("1.23" AS SIGNED INTEGER); /* 1 */
Let me do this for you.
Source: https://habr.com/ru/post/889921/More articles:Hide php extension, force trailing slash is a common question, always a crappy answer. Tell me if I'm right - redirectDevelopment environment for google-chrome-extension - google-chrome-extensionHow to add another field to an existing table in mysql - mysqlHow to use the Maven class path to run the main Java class? - javaWhy can't a regular expression match an XML element? - language-agnosticHow to record microphone sound using Java API? - javaJavaSound mixer with ports and DataLine (s)? - javaCheck file upload control using jquery - jqueryhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/889925/what-languages-or-methods-allow-graphics-music-demos-to-fit-in-64kb-exes&usg=ALkJrhhXu7PHlaKpz0mKXXz74fmsWblKHAInternationalization in Hibernate validators - javaAll Articles