NUMBER(4,2) as column type : Number « SQL Data Types « Oracle PL/SQL Tutorial






SQL>
SQL>
SQL> CREATE TABLE product_order_archive (
  2       product_name  VARCHAR2(25),
  3       salesperson   VARCHAR2(3),
  4       order_date DATE,
  5       quantity      NUMBER(4,2));

Table created.

SQL>
SQL> INSERT INTO product_order_archive VALUES ('Product 1', 'BB', '21-JUN-01', 10);

1 row created.

SQL> INSERT INTO product_order_archive VALUES ('Product 2', 'GA', '22-JUN-02', 50);

1 row created.

SQL> INSERT INTO product_order_archive VALUES ('Product 3', 'LB', '23-JUN-03', 20);

1 row created.

SQL> INSERT INTO product_order_archive VALUES ('Product 4', 'ZZ', '24-JUN-04', 80);

1 row created.

SQL> INSERT INTO product_order_archive VALUES ('Product 5', 'CA', '25-JUN-05', 2);

1 row created.

SQL> INSERT INTO product_order_archive VALUES ('Product 6', 'JT', '26-JUN-06', 50);

1 row created.

SQL>
SQL>
SQL> drop table product_order_archive;

Table dropped.

SQL>








10.9.Number
10.9.1.Number column
10.9.2.Plus two number type columns together
10.9.3.Compare Number type in where clause
10.9.4.NUMBER data type
10.9.5.NUMBER datatype: PRECISION 5 SCALE 2
10.9.6.NUMBER(4,2) as column type
10.9.7.select 5.1d, 42f from dual;
10.9.8.Use IN for number value