রবিবার, ২২ জানুয়ারী, ২০১২
মঙ্গলবার, ১৭ জানুয়ারী, ২০১২
বুধবার, ১১ জানুয়ারী, ২০১২
What are the difference between DDL, DML and DCL
Data Definition Language (DDL): ~ statements are used to define the database structure or schema.
Data Manipulation Language (DML):~ statements are used for managing data within schema objects.
Data Control Language (DCL): ~is used to control the data between different user accounts.
Transaction Control (TCL): ~ is used to manage the changes made by DML statements. It allows statements to be grouped together into logical transactions.
- CREATE - to create objects in the database
- ALTER - alters the structure of the database
- DROP - delete objects from the database
- TRUNCATE - remove all records from a table, including all spaces allocated for the records are removed
- COMMENT - add comments to the data dictionary
- RENAME - rename an object
Data Manipulation Language (DML):~ statements are used for managing data within schema objects.
- SELECT - retrieve data from the a database
- INSERT - insert data into a table
- UPDATE - updates existing data within a table
- DELETE - deletes all records from a table, the space for the records remain
- MERGE - UPSERT operation (insert or update)
- CALL - call a PL/SQL or Java subprogram
- EXPLAIN PLAN - explain access path to data
- LOCK TABLE - control concurrency
Data Control Language (DCL): ~is used to control the data between different user accounts.
- GRANT - gives user's access privileges to database
- REVOKE - withdraw access privileges given with the GRANT command
Transaction Control (TCL): ~ is used to manage the changes made by DML statements. It allows statements to be grouped together into logical transactions.
- COMMIT - save work done
- SAVEPOINT - identify a point in a transaction to which you can later roll back
- ROLLBACK - restore database to original since the last COMMIT
- SET TRANSACTION - Change transaction options like isolation level and what rollback segment to use
Keys in Database
Primary key:- The attribute or combination of attributes
that uniquely identifies a row or record.
Foreign Key:- an attribute or combination of attribute in a
table whose value match a primary key in another table.
Composite key:- A primary key that consistsof two or more
attributes is known as composite key
candidate key:- is a column in a table which has the
ability to become a primary key.
Alternate Key:- Any of the candidate keys that is not part
of the primary key is called an alternate key.
লেবেলসমূহ:
Alternate Key,
candidate key,
Composite key,
Foreign Key,
key,
Primary key
বৃহস্পতিবার, ৫ জানুয়ারী, ২০১২
Top 15 Open source alternative to Microsoft products
Operating System | Windows | Ubuntu |
Email Server | Exchange Server | Zimbra |
Email Client | Outlook | Thunderbird |
Browser | Internet Explorer | Firefox / Chrome |
Directory Service / Identity Management | Active Directory | Open LDAP |
Database | SQL Server | MySQL |
Enterprise Search | Fast | Solr |
Office Suite | MS Office | Open office / LibreOffice |
Source code Management | Visual source safe / Team foundation | Git / Subversion |
Web browser | IIS | Apache |
Integrated Development Environment | Visual studio | Eclipse / Netbeans |
Mobile OS | Windows Mobile | Android |
Media player | Windows Media Player | VLC Media player / Zinf |
UML and Network diagram tools | Visio | Dia / Star UML |
Enterprise Content Management System | Sharepoint | Alfresco / Liferay |
Java Final Keyword
- A java variable can be declared using the keyword final. Then the final variable can be assigned only once.
- A variable that is declared as final and not initialized is called a blank final variable. A blank final variable forces the constructors to initialise it.
- Java classes declared as final cannot be extended. Restricting inheritance!
- Methods declared as final cannot be overridden. In methods private is equal to final, but in variables it is not.
- final parameters – values of the parameters cannot be changed after initialization. Do a small java exercise to find out the implications of final parameters in method overriding.
- Java local classes can only reference local variables and parameters that are declared as final.
- A visible advantage of declaring a java variable as static final is, the compiled java class results in faster performance.
এতে সদস্যতা:
পোস্টগুলি (Atom)