ms-access - 访问 2016 将多字段附加到一个字段
问题描述
[![在此处输入图片描述][1]][1]大家好。
我有一个表格,其中包含一些字段,例如附件 T_Jadwal2.jpg。https://i.stack.imgur.com/mPuBg.jpg我需要将表格插入到其他表格中,格式不同 , 例如 T_Jadwal3.jpg https://i.stack.imgur.com/hRg7y.jpg在查询中有解决方案将 T_Jadwal2 附加到 T_Jadwal3
谢谢你。
问候, 费尔南多
解决方案
像这样创建一个联合查询:
Select ID_Jadwal, [Shift], Supervisor As Nm_Karyawan, "Supervisor" As Posisi
From YourTable
Where Supervisor Is Not Null
Union All
Select ID_Jadwal, [Shift], Printing, "Printing"
From YourTable
Where Printing Is Not Null
Union All
Select ID_Jadwal, [Shift], Tinta, "Tinta"
From YourTable
Where Tinta Is Not Null
Union All
Select ID_Jadwal, [Shift], Cylinder, "Cylinder"
From YourTable
Where Cylinder Is Not Null
Union All
Select ID_Jadwal, [Shift], Dry, "Dry"
From YourTable
Where Dry Is Not Null
Union All
Select ID_Jadwal, [Shift], Extrusion, "Extrusion"
From YourTable
Where Extrusion Is Not Null
Union All
Select ID_Jadwal, [Shift], Slitting, "Slitting"
From YourTable
Where Slitting Is Not Null
Union All
Select ID_Jadwal, [Shift], Rewind, "Rewind"
From YourTable
Where Rewind Is Not Null
在追加查询中使用它作为源。
推荐阅读
- python - 使用 Python 中的 Watson Assistant / Watson 对话
- javascript - 不再引用对象时的clearInterval?
- angular - 我可以在我的服务中使用小吃店吗?
- html - 获取背景图像以在两个背景图像之间重叠另一个背景图像元素
- vue.js - 完成请求后下载 - vue-json-excel
- .net - 从 R 调用 .Net 可执行文件时忽略配置文件
- python - 使用 Tkinter 的基于 Python 文本的游戏
- php - 正则表达式解析用逗号分隔的引号内
- angular - Angular 5路由器从回调导航什么都不做
- ios - 尽管存在 leftView,如何在 UITextField 中将文本居中?