Tema: Query´s
Ver Mensaje Individual
  #3 (permalink)  
Antiguo 19/03/2007, 21:12
Avatar de Mithrandir
Mithrandir
Colaborador
 
Fecha de Ingreso: abril-2003
Mensajes: 12.106
Antigüedad: 21 años, 10 meses
Puntos: 25
Re: Query´s

Una manera sencilla de hacerlo es con un while:

DECLARE @i int
SET @i = 1
WHILE (@i <= 500)
BEGIN
INSERT INTO tabla VALUES ('jeje', @i)
SET @i = @i + 1
END
__________________
"El hombre, en su orgullo, creó a Dios a su imagen y semejanza."
Friedrich Nietzsche