Welcome Guest, Not a member yet? Register   Sign In
MySql: Function to insert entry and return id... if already exists, return id of existing?
#1

[eluser]inktri[/eluser]
What's an efficient algorithm for a function that tries to insert an entry... if the entry already exists, it returns the id of that already existing entry, else it inserts the new entry and returns the id of the new entry?

thanks for the help


Messages In This Thread
MySql: Function to insert entry and return id... if already exists, return id of existing? - by El Forum - 05-03-2008, 05:20 PM



Theme © iAndrew 2016 - Forum software by © MyBB