Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Insert if not exist value #15

Open
masadi opened this issue Oct 1, 2013 · 1 comment
Open

Insert if not exist value #15

masadi opened this issue Oct 1, 2013 · 1 comment

Comments

@masadi
Copy link

masadi commented Oct 1, 2013

Is there a function to INSERT rows when there is no, or UPDATE if exists, using one MySQL query?

@ghost
Copy link

ghost commented Dec 21, 2013

I don't think one exists in the Class but for the SQL syntax check http://stackoverflow.com/a/6853256/1634384 and you can use that with ExecuteSQL within the class to execute it. Keep in mind that the input won't be sanitized so make sure to use mysql_real_escape_string().

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant