Say I have this two-column table
id | column_test
1 | NULL
2 | NULL
3 | NULL
...
as you see, the column_test column now all have value 'NULL'. Now I want to do an update to this table and the final status should look like :
id | column_test
1 | a
2 | b
3 | c
...
I know little about compound SQL statements, it looks the query to be used is a small SQL program which is probably going to have local variables involved. Unfortunately I don't know the exact syntax yet(I've tried to build the query myself in the last 20-30 minutes), maybe I can find some SQL gurus here to help me out.-)
[edit:let's stick to mysql.]