我是初学者,想请教各位一道题目:有两张表,student和teacher,student有sid、sname、spassword三个字段,外键是sid;teacher有tid、tname两个字段。想在ssh下实现一对多的增加和查询操作,代码如何实现呢?原理我是明白,但是到代码上怎么写都报错。还请高人指点。