1、首先先创建一个数据库school,并且进入数据库shool。
2、在数据库中,创建数据表teacher、student,并分别向两张数据表中插入数据。
3、使用join语句,对数据表student、teacher进行联表查询。