Tablas en SQL Server

/, SQL/Tablas en SQL Server

Tablas en SQL Server

La table Sales.Territory de AdventureWorks

Tablas son objetos que contiene toda la data en la base de datos. Las tablas en SQL Server se pueden visualizar como hojas de Excel. Cada tabla es compuesta de registros (filas y columnas.) Cada columna tiene su propio tipo de dato que representa alguna propiedad del registro. Unos ejemplos de columnas son tamaño, color y edad. SQL Server 2008 tiene un límite de 1024 columnas por tabla.  La fila es un registro completo que representa un punto de data. Un ejemplo seria detalles sobre una parte. Además de data, cada tabla puede tener claves, índices con sus estadísticas, limitaciones, y disparadores.

Las tablas se crean con código de definición (DDL). El código de definición empieza con CREATE TABLE, ALTER TABLE o DROP TABLE

Como Crear una tabla simple

La data en las tablas se crea e inserta con código de manipulación. (DML) El código de manipulación normalmente empieza con INSERT, ALTER o DELETE.

Un ejempo simple del INSERT

By | 2011-05-25T18:47:58-05:00 May 2nd, 2011|Categories: 100, SQL|Tags: , , |0 Comments

About the Author:

Mi nombre es Rodolfo y trabajo en Austin, Tejas. He estado trabajando con SQL Server desde 2003. Mi enfoque es SSRS, SSIS y el ajuste de rendimiento.

This Is A Custom Widget

This Sliding Bar can be switched on or off in theme options, and can take any widget you throw at it or even fill it with your custom HTML Code. Its perfect for grabbing the attention of your viewers. Choose between 1, 2, 3 or 4 columns, set the background color, widget divider color, activate transparency, a top border or fully disable it on desktop and mobile.

This Is A Custom Widget

This Sliding Bar can be switched on or off in theme options, and can take any widget you throw at it or even fill it with your custom HTML Code. Its perfect for grabbing the attention of your viewers. Choose between 1, 2, 3 or 4 columns, set the background color, widget divider color, activate transparency, a top border or fully disable it on desktop and mobile.