CHARACTER FUNCTIONS
----------------
select concat('Good ',' Morning')"My Name" from dual
My Name
Good Morning
----------------
select initcap('good')"My Name" from dual;
My Name
Good
----------------
select lower('GoOd')"My Name" from dual;
My Name
good
----------------
select upper('GoOd')"My Name" from dual;
My Name
GOOD
----------------
select lpad('Good',10,'$')"My Name" from dual;
My Name
$$$$$$Good
----------------
select rpad('Good',10,'$')"My Name" from dual;
My Name
Good$$$$$$
----------------
select substr('GoodDay',4,2)"My Name" from dual;
My Name
dD
----------------
select ltrim(' Good ')"My Name" from dual;
My Name
Good
----------------
select rtrim(' Good ')"My Name" from dual;
My Name
Good
----------------
select trim(' Good ')"My Name" from dual;
My Name
Good
----------------
select INSTR('Good Morning','o',2,3)"My Name" from dual;
My Name
7
----------------
select Length('Good Morning')"My Name" from dual;
My Name
12
----------------
NUMERIC FUNCTIONS
----------------
select mod(15,12)"My Value" from dual;
My Value
3
----------------
select power(15,12)"My Value" from dual;
My Value
129746337890625
----------------
select round(152.49,1)"My Value" from dual;
My Value
152.5
----------------
select trunc(152.49,1)"My Value" from dual;
My Value
152.4
----------------
select round(158.49,-1)"My Value" from dual;
My Value
160
----------------
select trunc(158.49,-1)"My Value" from dual;
My Value
150
----------------
select sign(-158.49)"My Value" from dual;
My Value
-1
----------------
select sign(158.49)"My Value" from dual;
My Value
1
----------------
select sqrt(256)"My Value" from dual;
My Value
16
----------------
Corprova | Saroj Hydraulics | AlphaNumeric | durgeshindia
0 responses:
Post a Comment