Calendar
May 2012
M T W T F S S
« Apr    
 123456
78910111213
14151617181920
21222324252627
28293031  
Statistic
Earn Cash by using your Blog

Posts Tagged ‘database objects’

Glance About Sybase Power Designer 11

Sybase Power Designer 11 is a modeling tool released by Sybase for
build an information system that is fast, structured and effective. Sybase Power Designer 11
supports multiple modeling as follows:
• Requirements Management
• Business Process
• Data Modelling
• XML Modelling
• Application Modeling with UML
• Information Liquidity Modeling
• Integrated Modelling
In this tutorial we will try to use Power Designer to do the modeling
data (data modeling) for then we will use to perform database design.
Simply put, to perform data modeling in Power Designer, we have to begin at
level Conceptual Data Model, where the data modeling is done using the method Entity
Relationship Diagram. In the CDM, data type that is used is general and not specific
against a particular database.
The second stage is to create a Physical Data Model (PDM) PDM is a specific form of
CDM that we have built. Power Designer has a lot of support for the target database, sowe
not to be confused about the type - the type of data used, because the Power Designer will
adjust as the data type that we defined earlier in the stage of the CDM.
The last stage is the script generates Data Definition Language (DDL) of the PDM that has been
is made. Through this we can generate the DDL objects - database objects (tables, triggers, views,
procedure) then DDL scripts so that we can execute the software of other databases such as Oracle
or MySQL, or we can also create a connection and execute it directly via the PowerDesigner.

 

What is DDL & DML?

All SQL commands are divided into two broad categories according to its function,namely:
DDL - Data Definition Language
is a collection of SQL commands used to create, modify and delete metadata structuresand definitions of database objects.DML - Data Manipulation Language
is a collection of SQL commands that are used for processing the contents of the data inthe table such as insert, modify and delete the contents of the data - and not associatedwith changes in the structure and data type definitions of database objects.Let us see from the definition and more examples in the following sections below.
DDL - Data Definition LanguageAs the definition described above, DDL is a set of SQL commands that are used to make(create), modify (alter) and delete (drop) the structure and data type definitions ofdatabase objects.

Objects in the database in question - in MySQL - is as follows:
database
table
View
index
Procedure (Stored Procedure)
function
trigger
example:

 
DDL Commands list on the MySQL 5.0Here are examples of DDL commands used in MySQL. Click on the link to see details ofthe use of the command.
Making (CREATE)
CREATE DATABASE
CREATE FUNCTION
CREATE INDEX
CREATE PROCEDURE
CREATE TABLE
CREATE TRIGGER
CREATE VIEWChanges (ALTER & RENAME)
ALTER DATABASE
ALTER FUNCTION
ALTER PROCEDURE
ALTER TABLE
ALTER VIEW
RENAME TABLEElimination (DROP)
DROP DATABASE
DROP FUNCTION
DROP INDEX
DROP PROCEDURE
DROP TABLE
DROP TRIGGER
DROP VIEW
                                                                                          Matrix table DDL commands MySQL 5.0
 OBJECT CREATE  ALTER  DROP RENAME 
 DATABASE  Yes Yes  Yes
 FUNCTION  Yes Yes  Yes
 INDEX  Yes  Yes
 PROCEDURE  Yes Yes  Yes
 TABLE  Yes Yes  Yes  Yes
 TRIGGER  Yes  Yes
 VIEW  Yes Yes  Yes
DML - Data Manipulation LanguageDML it self is a collection of SQL statements that relate to the job processing the data in thetable - and not associated with changes in the structure and data type definitions ofdatabase objects such as table, column, and so on.Examples of DML: Taking All the Row Data from the table MS_KARYAWAN

DML Example: Inserting data into tables ms_karyawan

Some DML Commands list of MySQL 5.0CALL
DELETE
DO
HANDLER
INSERT
LOAD DATA INFILE
REPLACE
SELECT
TRUNCATE
UPDATE