Posts: 1,594
Threads: 61
Joined: Oct 2009
Reputation:
0
LIMIT 1 means that it will only store one row for you.
The code itself doesn't seem to have any problem, so yes, it's correct.
Why don't you just try it out? ^^
Posts: 1,594
Threads: 61
Joined: Oct 2009
Reputation:
0
You only have to place a limit where you want it to be limited. Both ways work, this totally depends on your wish what the code should do.