change all the [Titles] of a sql table without any condition
I used a loop but don’t know how to affect all the rows within the Update statement
it should be easy one
something like :
WHILE @counter < 89
BEGIN
Update Products
SET Title = ('Product ' + @counter)
Where Title LIKE ''
SET @counter = @counter + 1 ;
END
SELECT Title FROM Products
This updates all the rows with the same value
BUT
if you need an autonumerated different values, try this:
It definitely work, try this
The output is