GhostXoP Posted December 23, 2012 Share Posted December 23, 2012 Is this possible? INSERT INTO ?? IF NOT EXISTS ?? (?,?) or INSERT INTO ?? (?,?) IF NOT EXISTS ?? or IF NOT EXISTS ?? INSERT INTO ?? (?,?) Link to comment
Cadu12 Posted December 23, 2012 Share Posted December 23, 2012 First, use SELECT, if returns 0 or doesnt exists, then use INSERT INTO Link to comment
Castillo Posted December 23, 2012 Share Posted December 23, 2012 No, if I'm right that does not exist, maybe this: INSERT OR IGNORE INTO Link to comment
GhostXoP Posted December 23, 2012 Author Share Posted December 23, 2012 What about insert or update? Link to comment
Castillo Posted December 23, 2012 Share Posted December 23, 2012 Not sure if that exists. Link to comment
GhostXoP Posted December 23, 2012 Author Share Posted December 23, 2012 So insert or ignore should work? it inserts just like insert if not exist? Link to comment
Castillo Posted December 23, 2012 Share Posted December 23, 2012 I think so, I never used it though. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now