Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is this good syntax
Message
 
To
25/08/2002 17:50:00
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00693476
Message ID:
00693478
Views:
27
Hey Jim,

here I am again :)

>Will this upadate the resschoolc field with the contents of the chcschoolc field if the resschoolc field is null and the chcschoolc field is not null?
UPDATE cisstudemo
  SET resschoolc = chcschoolc
  WHERE resschoolc IS NULL AND chcschoolc IS NOT NULL
Now it will do! But be aware of the fact, that you won't catch any records where an empty string is stored.

Armin

Armin Neudert
Regional Director (Stuttgart) of German FoxPro User Group dFPUG

MCP for Visual FoxPro

Expert/Editor of the VFP section in the German Codezone community portal
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform