Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
aoriju
Posting Yak Master
156 Posts |
Posted - 2010-06-01 : 08:26:22
|
| Dear all,I have a table with 4 columns.Almost 100000 records in tablei want to add one column Class_Id into table with default value 0We can use alter syntax..My Question is Alter a table with update the existing records with some valueThanks & RegardsRiju A.O |
|
|
webfred
Master Smack Fu Yak Hacker
8781 Posts |
Posted - 2010-06-01 : 08:28:24
|
First alter the table and then run your update statement. No, you're never too old to Yak'n'Roll if you're too young to die. |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2010-06-03 : 04:25:27
|
| Note that default value will set to each INSERT statementFor modifying the existing data, you need to run update statementMadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|