I have a table, called "sessions" and it has a unique field, "session_id" (the user's session id).
Now, in my page, I want to create a INSERT statement something like this:
In other words, don't insert it if it already exists. I can do this using TWO statements, a SELECT and an INSERT but I'd like to save effort if I possibly can...Code:INSERT INTO sessions (session_id) VALUES(111452) WHERE "Row with the same session_id is NOT there"
Can I do this?








Bookmarks