Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How will I compare the old value with new while updating
Message
From
22/05/2005 02:41:23
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01016451
Message ID:
01016545
Views:
8
sir, I have one more qustions, if this table contains three fileds then how can i update
iduvidualy in a single statement.

UPDATE mytable
SET myfield = @NewValue
WHERE < whetever conditions >
AND myfield <> @NewValue
>
>While updating data in the server, i want to skip the field if and only if the new value
>and old the values are same. Othewise i want to update the field with new value.
>how will i write Sql Statement for this.
>

Regards
Abdulla
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform