0
Hello I am trying to insert random values in the columns but without success. I tried that but I got nothing. Someone who can help please.
Declare @NovosID int
SELECT @NovosID=NovosID FROM Loja.dbo.Itens_Ale WHERE UsuarioID = @UsuarioID
INSERT INTO Loja.dbo.S_Itens (UsuarioID, Vaga, ID, Quantidade, Código, Nome, Ordenar, Verificar, Data)
VALUES (@UsuarioID, @Vagas, @NovosID, '1', 'Site', @ItemNome, @OrdenarNu, '1', @GetData);
I tried this gambiarra but without success. Inside the table_Ale has only 4 items with the ID 101/106/112/194
So I want him to make a random choice of these numbers to send to the other table.
Thank you very much, it was perfect.
– Opan