Welcome Guest, Not a member yet? Register   Sign In
Need Help with this Query
#2

[eluser]mah0001[/eluser]
You insert query is incorrect. Try something:
Code:
INSERT INTO users(email,password,username)  SELECT 'test1','test','test1' FROM DUAL WHERE NOT EXISTS (SELECT * FROM users WHERE username='test1');


Messages In This Thread
Need Help with this Query - by El Forum - 02-05-2010, 08:07 PM
Need Help with this Query - by El Forum - 02-05-2010, 10:20 PM
Need Help with this Query - by El Forum - 02-06-2010, 03:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB