Skip to content

Instantly share code, notes, and snippets.

@blt
Created June 7, 2011 20:10
Show Gist options
  • Save blt/1013041 to your computer and use it in GitHub Desktop.
Save blt/1013041 to your computer and use it in GitHub Desktop.
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE NOT EXISTS ( SELECT id FROM PlatonicBridgeUser WHERE jid= ' at line 1
INSERT INTO PlatonicBridgeUser (jid)
SELECT '[email protected]'
WHERE NOT EXISTS (
SELECT id FROM PlatonicBridgeUser
WHERE jid= '[email protected]'
)
CREATE TABLE PlatonicBridgeUser (
id SERIAL NOT NULL PRIMARY KEY,
jid text NOT NULL UNIQUE
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment