Académique Documents
Professionnel Documents
Culture Documents
datos
almacenados
en
bases
de
datos
base
de
datos
existente.
Si
de
no
se
manera
TABLAS
Qu son las Tablas?
Las tablas son la estructura bsica donde se almacena la
informacin en la base de datos.
Es el nombre de la nueva tabla. Los nombres de tablas
deben
seguir
las
table_name puede
caracteres,
excepto
reglas
contener
para
de
un
los
los identificadores.
mximo
nombres
de
de
128
tablas
USE MANTENIMIENTO
creando al momento de
ejecutar y compilar
TABLE VEHICULO
int identity primary key not null,
nvarchar(20) not null,
nvarchar(20) not null,
nvarchar(20) not null,
nchar(10) not null,
nvarchar(30) not null,
nvarchar(30) not null,
text not null,
nchar(10) not null,
FABRICACION
STOCK
COSTO
)
values ('PL3627','CAMION','TOYOTA','FRONTIER',2010,'JSDH873242','SDBI123412
','MARRON',892312)
insert into Vehiculo
(PLACA,TIPO,MARCA,MODELO,AO,MOTOR,CHASIS,COLOR,KM)
values ('PL1209','AUTO','NISSAN','FRONTIER',2016,'DSF435235','GWE552352','P
LATEADO',83540)
select* from REPUESTOS
GO
insert
values
insert
values
insert
values
insert
values
insert
values
insert
values
insert
values
insert
values
insert
values
insert
values
insert
values
insert
values
insert
values
insert
values
insert
values
insert
values
into PAGO(IDPAGO,TIPO,CUOTAS,INTERES,BANCO)
(105,'CREDITO',6,'10%','CONTINENTAL')
into PAGO(IDPAGO,TIPO,CUOTAS,INTERES,BANCO)
(106,'CREDITO',12,'15%','CONTINENTAL')
into PAGO(IDPAGO,TIPO,CUOTAS,INTERES,BANCO)
(107,'CREDITO',3,'7%','BCP')
into PAGO(IDPAGO,TIPO,CUOTAS,INTERES,BANCO)
(108,'CREDITO',6,'12%','BCP')
into PAGO(IDPAGO,TIPO,CUOTAS,INTERES,BANCO)
(109,'CREDITO',3,'8%','INTERBANK')
into PAGO(IDPAGO,TIPO,CUOTAS,INTERES,BANCO)
(110,'CREDITO',6,'13%','INTERBANK')
registros de la tabla
CREATE VIEW NOMBRE DELA VISTA F
Creacion de vistas
1ROM
TABLA
>>