Ver Mensaje Individual
  #3  
Antiguo 29-01-2010
Avatar de marcoszorrilla
marcoszorrilla marcoszorrilla is offline
Capo
 
Registrado: may 2003
Ubicación: Cantabria - España
Posts: 11.221
Reputación: 10
marcoszorrilla Va por buen camino
Otro ejemplo:
Código:
Create Table LinAmortiza(
Id Integer Not Null,
SbCuenta Varchar(7) Not Null,
Annee Varchar(4) Not Null,
Importe DM_Euro,
Observa Varchar(60));


Alter Table LinAmortiza Add constraint Pk_LinAmortiza_Id  PRIMARY KEY (Id);
Create Index ID_LinAmortiza_SbCuenta  On LinAmortiza(SbCuenta);
Create Index Id_LinAmortiza_sbCuenta_annee On LinAmortiza(Sbcuenta, Annee);
Alter Table LinAmortiza Add Foreign Key(SbCuenta) References Amortiza(SbCuenta);
Un Saludo.
__________________
Guía de Estilo de los Foros
Cita:
- Ça c'est la caisse. Le mouton que tu veux est dedans.
Responder Con Cita