Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set Blanks to Null 1

Status
Not open for further replies.

njvsummit

MIS
Apr 5, 2004
20
US
I've inherited a rather large table that has several columns which contain both blank and null values. The table is not updated, just reported against. For consistencies sake, I would like to set all of the blank values to null. Is there an easy way to do this?

Thanks
 
Try this:
Code:
Update MyTable
  Set   MyField = Null
  Where	Len(MyField) = 0
HTH,
John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top