php - mySQL stored procedure not returning the value it should -


any idea why:

create definer = `root` @`%` procedure `geteventdata` (in id int)  begin   select      *        `event`    `id` = id ; end $$ 

returns every row in event table when there single record id (which primary key) 4?

just else has same question aware, apparently can't use parameter same name column you're checking.


Comments

Popular posts from this blog

How to logout from a login page in asp.net -

Stack level too deep error after upgrade to rails 3.2 and ruby 1.9.3 -