I have this SQL:
What I want is saying something like:Code:"INSERT INTO tbl_guilds (name,parent) VALUES (@guild, @astroLocation) ON DUPLICATE KEY UPDATE name=@guild, parent=@astroLocation";
Anyone got any suggestions?Code:"INSERT INTO tbl_guilds (name,parent) VALUES (@guild, @astroLocation) ON DUPLICATE KEY UPDATE name=@guild, parent=@astroLocation IF @guild IS NOT NULL";


(right side on this reply ) and agree

