0% found this document useful (0 votes)
5 views

SQL D4

Uploaded by

r2701575
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

SQL D4

Uploaded by

r2701575
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

DATES

-----
Returns the system date - SELECT SYSDATE FROM dual
Returns the date and time of the system date - SELECT SYSTIMESTAMP FROM dual
CURRENT DATE(our timezone date) - SELECT CURRENT_DATE FROM dual
CURRENT TIME STAMP(our timezone time) - SELECT CURRENT_TIMESTAMP FROM dual

===================================================================================
=================================

Data Type
---------
Number - 38b
Char - 2000b CHAR is fixed length,we should mention length.
Varchar - 4000b VARCHAR is variable length, varchar(20) 0 -20 pandi,
Long - Paragraph Data 2GB
Date - DD/MMM/YY
CLOB - Character Large Object. Media files music/PDF 4GB
BLOB - Binary Large Object 4GB

===================================================================================
===================================

DDL : Data Definition Language(Auto commit)


---
1.CREATE
2.ALTER
3.RENAME
4.DROP
5.TRUNCATE

===================================================================================
===================================

DML : Data Manipulation Language(Manual Commit)


---

1.INSERT
2.UPATE
3.DELETE
4.MERGE

===================================================================================
===================================

TCL : Transaction Control Languages


---
1.COMMIT - SAVING THE DATA
2.ROLLBACK - UNDO (If you do a rollback,we should not give a commit)
3.SAVE POINT - SAVE PARTICULAR PINT

===================================================================================
===================================

You might also like