MySQL Programming Question:

Download Job Interview Questions and Answers PDF

How To Include Numeric Values in SQL statements?

MySQL Programming Interview Question
MySQL Programming Interview Question

Answer:

If you want to include a numeric value in your SQL statement, you can enter it directly as shown in the following examples:

SELECT 255 FROM DUAL; -- An integer
255

SELECT -6.34 FROM DUAL; -- A regular number
-6.34

SELECT -32032.6809e+10 FROM DUAL; -- A floating-point value
-3.20326809e+014


Download MySQL Programming Interview Questions And Answers PDF

Previous QuestionNext Question
How To Concatenate Two Character Strings?How To Enter Characters as HEX Numbers?