查询以搜索带图像的项目
我正在寻找一个查询来查找具有图像的项目。
(status != 'OBSOLETE' and itemsetid = 'ITEMSET1') and (exists (select 1 from dbo.inventory where ((location = 'SPARES')) and (itemnum=item.itemnum and itemsetid = item.itemsetid))) and (itemnum in (select imglib.refobjectid from IMGLIB where refobject='ITEM'))
添加时,一切都与例外完美配合:
itemnum in (select imglib.refobjectid from IMGLIB where refobject='ITEM')
我无法访问数据库,因此我无法检查 IMGLIB 表的内容,但据我所知,这应该可以工作? refobjectid是存储的itemnum?
我缺少什么?
I am looking for a query to look for items that have a image.
(status != 'OBSOLETE' and itemsetid = 'ITEMSET1') and (exists (select 1 from dbo.inventory where ((location = 'SPARES')) and (itemnum=item.itemnum and itemsetid = item.itemsetid))) and (itemnum in (select imglib.refobjectid from IMGLIB where refobject='ITEM'))
everything works perfectly with the exeption when adding:
itemnum in (select imglib.refobjectid from IMGLIB where refobject='ITEM')
I can't reach the db so i can't check the contents of the IMGLIB table but AFAIK this should work?
refobjectid is the stored itemnum?
What am i missing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
查看 Maximo 版本 7.6.0.3 实体关系时文档 (ERD):(
部分)
IMGLIB
的 MAXIMO INCOMING RELATIONSHIPS我认为你需要
ITEMID
,而不是ITEMNUM
(但我不了解 MAXIMO ...)
When looking at Maximo version 7.6.0.3 Entity Relationship Document (ERD):
(part of) MAXIMO INCOMING RELATIONSHIPS for
IMGLIB
I think you need
ITEMID
, and notITEMNUM
(But I do not have knowledge of MAXIMO ... )
您的查询应如下所示:
Your query should look something like this: