I have this query
INSERT INTO [SI_Consecutivo]
(SI_Num_Inventario, SI_Nombre, SI_Fecha_Creacion, SI_Estado, SI_Almacen, SI_Num_Conteo)
VALUES (1, 'uno', GETDATE(), 0,'cdis', 1 + FLOOR(RAND() * 1 ))
I execute it with a button in javascript. what I'm trying to do is that when I insert in the field SI_Num_Conte
I keep it as if it were a consecutive, that is, I will stay 1, if I give it again in the button I save what I saved above + 1 , and so on until the end of time.