绑定datagridview期间在Sql Server上工作但不在dotnet上运行的查询 [英] query working on Sql Server but not on dotnet during binding the datagridview

查看:86
本文介绍了绑定datagridview期间在Sql Server上工作但不在dotnet上运行的查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

select P.productid,  P.displayname, P.skuno, P.haslicense,P.isevalversion,O.oemname from productmast P Inner join userpermission U on P.productid=U.productid join oemmast O on P.oemid=O.oemid



该查询正在Sql Server Management Studio上运行,但是当我使用它绑定GridView时,它将无法正常工作.关于oemid的显示错误不存在



This query is running on the Sql Server Management Studio but when i am using it to bind the GridView then its not working . Its showing error regarding oemid not exist

推荐答案



尝试一次此查询

Hi,

try this query once

select P.productid,  P.displayname, P.skuno, P.haslicense,P.isevalversion,O.oemname,P.oemid from productmast P Inner join userpermission U on P.productid=U.productid join oemmast O on P.oemid=O.oemid



在这里,您还必须在第一次连接中检索P.oemid,然后才能在第二个连接中进行比较

最好的



Here you''ve to retrieve P.oemid also in first join then only you can compare in second join

All the Best


这篇关于绑定datagridview期间在Sql Server上工作但不在dotnet上运行的查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆