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 |
|
Nasser
Starting Member
12 Posts |
Posted - 2007-06-18 : 07:56:06
|
| Hello thereHow are you? Hope fine and healthyI have hug database which contain empty filed, I would like to fill the empty filed by inserting 0 in each empty filed using SQL commandMay I have help please?Thanks in advance |
|
|
harsh_athalye
Master Smack Fu Yak Hacker
5581 Posts |
Posted - 2007-06-18 : 08:03:22
|
| [code]Update Tableset EmptyCol = 0Where EmptyCol = '' or EmptyCol Is NULL[/code]Harsh AthalyeIndia."The IMPOSSIBLE is often UNTRIED" |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2007-06-20 : 06:48:58
|
| or Update Tableset EmptyCol = 0Where Coalesce(EmptyCol,'') = ''MadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|