各位老师:
求助一个查询表生成,需求如下
在workflow_file表下有 发起人fieldstr15列 接收人fieldstr16列 分别写的是值
在system_users表下有id列 username列
我想生成一个查询表,在查询表中生成带有workflow_file表下的 id,fileno,fieldstr15,fieldstr16,username15,username16这些列,其中username15与username16列分别来自workflow_file的fieldstr15,fieldstr16对应system_users下的id索引取出的username写到查询表中username15与username16。
由于system_users表下的id是整数值 workflow_file下的fieldstr15、fieldstr16为字符
原因:这两个表来自于外部软件的数据库,是一种工作流软件,表单设计这么写了,我需要做一个报表,因此以上操作不会了,请各位老师指导