Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Update if exist and insert if it doesn't
Message
From
12/08/2001 05:48:38
 
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00542663
Message ID:
00542733
Views:
17
>You can't do it in one instruction. Here's my perfered method:
>
>if exists (select * from mytable where keyfield=keyvalue)
> update ...
>else
> insert
>
>-Mike

Thanks Mike.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform