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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Do I need a complex select?

Status
Not open for further replies.

hortensiam

IS-IT--Management
Feb 5, 2002
86
AR
Hi all!
I need to change to a six spaces seven fields per record (f1, f2,...,f7) if and only if the value of the field is null.
how can i write this stored procedure?
thanks,
 
Hi hortensiam;

update <table>
set <field> = '<string>'
where <field> is null

Bye...
 
I want only one update statement to modify all fields in a table. I found the solution:
update table set f1 = isnull(f1,&quot; &quot;), f2 = isnull(f2,&quot; &quot;) where condition1
thanks in advance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top