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.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 replace blank field with value, but not null. How?

Author  Topic 

eric@horwitzlaw.com
Starting Member

6 Posts

Posted - 2005-04-11 : 09:25:27
Hello,

I am trying to replace a null value column with a value. The problem is that it is not null. How would I look for a BLANK value and replace it. The replace function doesn't work.


replace(replace(replace(replace(typelaw,7,atty1),10,atty1),9,isnull(atty2,'')),'','Not Available') as 'SINGATTY',

Thanks!

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2005-04-11 : 09:30:06
so you want to update a column???

Go with the flow & have fun! Else fight the flow
Go to Top of Page

DonAtWork
Master Smack Fu Yak Hacker

2167 Posts

Posted - 2005-04-11 : 12:03:13
UPDATE <tablename> SET <columnname> = 'Not Available' WHERE <columnname> = ''

Is this what you are looking for?
Go to Top of Page
   

- Advertisement -