Académique Documents
Professionnel Documents
Culture Documents
C
-
Z
D
-
X
SQL> select 'name-'||ename|| 'is gating ' || sal||' salary ' from emp where sal=3000;
'NAME-'||ENAME||'ISGATING'||SAL||'SALARY'
-------------------------------------------------------------------------
name-SCOTTis gating 3000 salary
name-FORDis gating 3000 salary
14 rows selected.
CEIL(48.876)
------------
49
ABS(-250)
---------
250
EXP(5)
---------
148.41316
FLOOR(48.876)
-------------
48
LN(1000)
---------
6.9077553
LN(10)
---------
2.3025851
LOG(10,10)
----------
1
MOD(500,2)
----------
0
POWER(2,7)
----------
128
ROUND(87.945,2)
---------------
87.95
ROUND(87.945456,3)
------------------
87.945
SIGN(-22)
---------
-1
SIGN(222222)
------------
1
SIN(90)
---------
.89399666
SQRT(45)
---------
6.7082039
N
---------
45
ENAME
----------
SCOTT
TO_CHAR(
--------
29\07\10
TO_CHAR(
--------
30\07\10
UID
---------
20
USER
------------------------------
SCOTT
no rows selected
SQL> select roll from sycm unoio select acts_no from acts;
select roll from sycm unoio select acts_no from acts
*
ERROR at line 1:
ORA-00933: SQL command not properly ended
SQL>
SQL>
SQL> select vsize ('avanti s t ') from dual;
VSIZE('AVANTIST')
-----------------
11
SQL>
SQL> select avg (sal) from emp;
AVG(SAL)
---------
2073.2143
COUNT(*)
---------
14
SQL> commit;
Commit complete.
SQL>
SQL>
SQL>
SQL>
SQL>
SQL>
SQL>
SQL> select * from tab;
10 rows selected.
14 rows selected.
CEIL(48.876)
------------
49
SQL> select abs(-250) from dual;
ABS(-250)
---------
250
EXP(5)
---------
148.41316
FLOOR(48.876)
-------------
48
LN(1000)
---------
6.9077553
LN(10)
---------
2.3025851
LOG(10,10)
----------
1
SQL> select mod (500,2) from dual;
MOD(500,2)
----------
0
POWER(2,7)
----------
128
ROUND(87.945,2)
---------------
87.95
ROUND(87.945456,3)
------------------
87.945
SIGN(-22)
---------
-1
SIGN(222222)
------------
1
SIN(90)
---------
.89399666
SQRT(45)
---------
6.7082039
N
---------
45
ENAME
----------
SCOTT
TO_CHAR(
--------
29\07\10
TO_CHAR(
--------
30\07\10
UID
---------
20
SQL> select user from dual;
USER
------------------------------
SCOTT
no rows selected
SQL> select roll from sycm unoio select acts_no from acts;
select roll from sycm unoio select acts_no from acts
*
ERROR at line 1:
ORA-00933: SQL command not properly ended
SQL>
SQL>
SQL> select vsize ('avanti s t ') from dual;
VSIZE('AVANTIST')
-----------------
11
SQL>
SQL> select avg (sal) from emp;
AVG(SAL)
---------
2073.2143
COUNT(*)
---------
14
SQL> commit;
Commit complete.
10 rows selected.