Yup, the first answer was right, it is a myth!
"Fish have a 3-second-memory, and forget everything as soon as it happens." Have you ever heard that before? Well it's false! Ichthyologists or fish scientists, finally prove that fish have a better memory than we think! In 2003 Dr Phil Gee, of the School of Psychology at the University of Plymouth, published research stating that fish memory spans up to three months or more.
In the 'Plymouth experiments', goldfish were trained to press a lever to gain food as a reward; when the lever was fixed to work only for an hour a day, the fish very quickly learned to activate it at the correct time.
An additional set of studies have proven that farmed fish can easily be taught to feed at particular times and places, in response to an audible signal.
So, Don't make fun of your pet fish, he'll probably remember it!