Change column data to upper case : UPPER « Character String Functions « Oracle PL/SQL Tutorial





SQL>
SQL> CREATE TABLE employee (
  2  id                             number,
  3  name                           varchar(100),
  4  birth_date                     date,
  5  gender                         varchar2(30) );

Table created.

SQL>
SQL>
SQL> INSERT INTO employee (id,name,birth_date,gender )VALUES (100,'a',to_date('19230823', 'YYYYMMDD'),'MALE' );

1 row created.

SQL>
SQL> select * from employee;

    ID
------
NAME
----------------------------------------------------------------------
BIRTH_DATE GENDER
---------- ------------------------------
   100
a
23-08-1923 MALE


1 row selected.

SQL>
SQL> UPDATE employee
  2  set    name = upper(name);

1 row updated.

SQL>
SQL> drop table employee;

Table dropped.










11.10.UPPER
11.10.1.UPPER(x) converts the letters in x to uppercase.
11.10.2.Use upper() function in where clause
11.10.3.Change column data to upper case
11.10.4.Change book title to upper case if it is not
11.10.5.Combine upper function with LIKE