![]() | |
#11
| |||
| |||
|
|
So far, I've figured out 4 possible ways to perform upsert-like functionality: 1. try insert, on exception update 2. try update, on exception insert 3. delete, then insert 4. merge with DUAL It seems so far the nicest solution is #4. Here's some questions: - Do the other methods have any features which might recommend them? - Are there any methods that might be portable to other databases? - Are there any methods I might be overlooking? Many TIA! Mark Search asktom.oracle.com for "upsert" - he has documented, timed |
#12
| |||
| |||
|
|
So far, I've figured out 4 possible ways to perform upsert-like functionality: 1. try insert, on exception update 2. try update, on exception insert 3. delete, then insert 4. merge with DUAL It seems so far the nicest solution is #4. Here's some questions: - Do the other methods have any features which might recommend them? - Are there any methods that might be portable to other databases? - Are there any methods I might be overlooking? Many TIA! Mark Search asktom.oracle.com for "upsert" - he has documented, timed |
#13
| |||
| |||
|
|
So far, I've figured out 4 possible ways to perform upsert-like functionality: 1. try insert, on exception update 2. try update, on exception insert 3. delete, then insert 4. merge with DUAL It seems so far the nicest solution is #4. Here's some questions: - Do the other methods have any features which might recommend them? - Are there any methods that might be portable to other databases? - Are there any methods I might be overlooking? Many TIA! Mark Search asktom.oracle.com for "upsert" - he has documented, timed |
#14
| |||
| |||
|
|
You're better served by writing to the dbms in use, not attempting to generate 'universal' code which likely won't scale nor will it perform. |

#15
| |||
| |||
|
|
You're better served by writing to the dbms in use, not attempting to generate 'universal' code which likely won't scale nor will it perform. |

#16
| |||
| |||
|
|
You're better served by writing to the dbms in use, not attempting to generate 'universal' code which likely won't scale nor will it perform. |

#17
| |||
| |||
|
|
You're better served by writing to the dbms in use, not attempting to generate 'universal' code which likely won't scale nor will it perform. |

![]() |
| Thread Tools | |
| Display Modes | |
| |