Created
February 18, 2015 18:38
-
-
Save thequbit/0aa98c89324ebc928649 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
result = session.execute( | |
'INSERT INTO clients(cuid) ' | |
'SELECT * FROM ( SELECT ":cuid" ) AS temp_table ' | |
'WHERE NOT EXISTS ( ' | |
' SELECT cuid FROM clients WHERE cuid = ":cuid" ' | |
') LIMIT 1;', | |
cuid=cuid | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment