Read the links provided above:

Basically - you create different users. Assign those users with the proper rights, to the proper tables and presto - access is restricted