![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| Database Database problems or need to ask a question? maybe something to do with sql injections or a database software question. Database topics cover MySQL, PostgreSQL, Oracle, SQL Server or anything else related to databases. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| I am trying to update a record if it exists or else create it if it does not. Right now, I am implementing this in the logic of the programs that manipulate the database, but I'd love to move that functionality into the database instead - but I don't see how to do it. Am I missing something? Many thanks, Jeff Silverman | |||
| | #2 | ||
| Have you tried the REPLACE sql syntax. It updates a duplicate record and adds it when not found. REPLACE records SET my_name = 'Jeff' WHERE my_id = 12; "Jeff Silverman" <jeffs@NOPAM.commercialventvacNOSPAM.com> wrote in message news >I am trying to update a record if it exists or else create it if it does > not. Right now, I am implementing this in the logic of the programs that > manipulate the database, but I'd love to move that functionality into the > database instead - but I don't see how to do it. Am I missing something? > > Many thanks, > > > Jeff Silverman > | |||
| Featured Websites | ||||
|
![]() |
| Tags: exist, possible, record, update |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Updating record remotely from a script? | Burma Jones | Database | 1 | 05-31-2007 8:48 PM |
| Does this software exist? | Amos Soma | Ebay Technical Questions | 2 | 05-31-2007 10:03 AM |
| Good samaritans still exist | Ridwan Hughes | Ebay Technical Questions | 2 | 05-30-2007 2:10 AM |
| Well crap. There goes my perfect record. | Lee | General Ebay Questions And Answers | 49 | 05-30-2007 1:01 AM |
| PHP5 Static functions called through __call() that don't exist... yet | Jared Farrish | Pear | 2 | 05-20-2007 6:34 PM |
| Featured Websites | ||||
|