AKsnoopy

想要在展示用户数据(from identification)表的同时连接另一个表(department),并且获取对应院系的表名

 

解决方法:

修改sql语句的写法

通过identification里的d_id与department里d_id的链接名相等获取这个值去实现表之间的链接。详细写法见代码处

1 sql = "select identification.*,department.d_name from identification,department where identification.bzm=? and identification.d_id=department.d_id ";

 

问题解决成功。(所属院系名称便为表的链接查询结果)

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-02-09
  • 2022-02-09
  • 2021-12-05
  • 2021-08-17
  • 2021-07-23
  • 2022-01-01
猜你喜欢
  • 2022-02-09
  • 2021-11-20
  • 2022-02-17
  • 2021-08-16
  • 2021-04-26
  • 2022-12-23
相关资源
相似解决方案