Hello,
I have table like;
CREATE TABLE IF NOT EXISTS `user_t` (
`user_id` int(11) NOT NULL auto_increment,
`name` varchar(20) NOT NULL,
PRIMARY KEY (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
And lets say there is 1000 records in it.
Now I want to make a query where the user_id = 500.
Is it a good practice to user LIMIT 1 at the end of my query, as I know that my query is going to return only 1 row?
in fact is there a need for LIMIT at all as I am doing a query on a primary key, which is unique?