datattype sql code example
Example 1: data types in sql
• number(num) - whole numbers up to num digits
• number(num,num2) - num whole numbers up to num2 decimals
• char(num) - fixed length character/string
• varchar2(num) - used for varying length data
• date - full date
• currency - used for prices
Example 2: sql What type is that value?
SELECT TYPEOF(value);