如何获得差异. C#中两个表的值? [英] How get diff. value from two tables in C#?

查看:60
本文介绍了如何获得差异. C#中两个表的值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在表User_login或产品中都没有相同的属性,那么我为Select查询做什么?

There is no same attribute in both table User_login or Product So what I do for Select query?

推荐答案

如果它们没有任何关系,那为什么呢?你想加入他们.
如果它们之间有关系,那么为什么您在创建数据结构时不去做.
if they don''t have any relation then why you want to join them.
And if they have relation then Why you did''t take while creating your data strcture.


1)您可以在一个过程中编写两个不同的查询,并在一个过程中获得多个结果集.过程调用..

2)如果数据类型相同,请创建union all

3)如果可能,请创建连接两个表的表格,并根据适当的条件过滤您的答案.


微笑:) :):)
1) you can write two different queries inside a procedure.. and get multiple result sets in single procedure call..

2) if data types are same create union all

3) if possible create join both the tables and get your answer filtered by propper conditions.


smile :) :) :)


这篇关于如何获得差异. C#中两个表的值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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