Powiel możliwe:
Add column, with default value, to existing table in SQL ServerDodaj kolumnę zer z serwerem sql tabeli
Mam tabelę w serwerze SQL, ale chcesz dodać dodatkową kolumnę pełną zer
Jaki byłby najlepszy sposób wykonania tej czynności?
att1 att2
---------
1.0 5.8
2.7 3.8
5.1 6.8
staje
att1 att2 extra
----------------
1.0 5.8 0.0
2.7 3.8 0.0
5.1 6.8 0.0
Domyślne powinno być 0, więc wszystko co musisz zrobić, to dodać kolumnę. –
Jest to prawie takie samo, jak: http://stackoverflow.com/questions/92082/add-column-with-default-value-to-existing-table-in-sql-server – Matt
@MattH - Zgadzam się, że jest całkiem na miejscu. –