miércoles, 16 de julio de 2014

Lenguaje de bases de datos


DDL (LENGUAJE DE DEFINICIÓN DE DATOS)

Sencillo lenguaje artificial para definir y describir los objetos de la base de datos, su estructura, relaciones y restricciones. En la práctica puede consistir en un subconjunto de instrucciones de otro lenguaje informático

LAS SENTENCIAS MARCADAS COMO “DDL”, SON LAS SIGUIENTES: 

CREATE: CREA OBJETOS DENTRO DE UNA BASE DE DATOS. 
ALTER: MODIFICA OBJETOS DENTRO DE UNA BASE DE DATOS. 
DROP: ELIMINA OBJETOS DENTRO DE UNA BASE DE DATOS. 

LAS SENTENCIAS SON LLAMADAS DE “DEFINICIÓN”, PORQUE ESTAS SI INTERVIENEN EN LA VIDA DE UN OBJETO, ASÍ COMO DE LOS DATOS RELACIONADOS AL OBJETO, LAS CLAUSULAS QUE SE ENCUENTRAN DENTRO DE LOS DDLS SE UTILIZAN PARA CREAR, ALTERAR Y MODIFICAR: TABLAS, VISTAS, LLAVES, ÍNDICES, ETC. 

TODOS LOS DATOS RELACIONADOS A UNA TABLA QUE SE ELIMINA TAMBIÉN SERÁN BORRADOS, POR ELLO ESTAS CLAUSULAS SON PARA DEFINIR LA MANERA CÓMO VA A TRABAJAR UN OBJETO DETERMINADO.




DML(Lenguaje de manipulación de datos)

permite el manejo y procesamiento del contenido de la base de datos. En la práctica puede consistir en un subconjunto de instrucciones de otro lenguaje informático


DML (LENGUAJE DE MANIPULACIÓN DE DATOS) 

LAS SENTENCIAS MARCADAS COMO “DML”, SON LAS SIGUIENTES: 
• SELECT: DEVUELVE LA INFORMACIÓN QUE SE LE SOLICITA POR MEDIO DE LAS CONDICIONES QUE POSEE. 
• INSERT: INSERTA DATOS EN LAS TABLAS QUE SE ENCUENTRAN DEFINIDAS DENTRO DE UNA O VARIAS TABLAS. 
• UPDATE: ACTUALIZA LA INFORMACIÓN DENTRO DE UNA O VARIAS TABLAS. 
• DELETE: ELIMINA DATOS EN UNA O VARIAS TABLAS. 

ESTAS SENTENCIAS SON LLAMADAS DE MANIPULACIÓN DE DATOS DEBIDO A QUE NO INTERFIEREN EN LA VIDA DE LOS OBJETOS DENTRO DE UNA BASE DE DATOS, SINO QUE SOLAMENTE INTERFIEREN EN LA “MANIPULACIÓN” DE LOS DATOS QUE SE ENCUENTRAN EN DICHA BASE DE DATOS. 




No hay comentarios.:

Publicar un comentario