I have a table with the columns: (this is only an example I have 50K records)
Name, Number
Joe Null
Michael Null
Moses Null
I to update the number with a sequence number from 1-3 so it will look like this:
Name, Number
Joe 1
Michael 2
Moses 3
How can I do it in SQL for Mysql in one SQL command
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…