我想查询数据库主键相关的外键信息 怎么查询
有一张StudentTable表,其中Sid为主键,另有一张CourseTable表,我现在想得到CourseTable表中所有与StudentTable表中Sid = 002 的数据