如何在1个网格视图中使用不同数据库表的不同列? [英] How to use different columns of different tables of database in 1 grid view?
问题描述
但是因为我是这些东西的新手,我有点困惑,最好的方法是什么。
我尝试了什么:
i认为最好还有另一张表,其中id为user,id为good,和用户建议价格,但后来我不知道如何使用它们。
使用加入概念..
赞
内部加入
正确加入
左加入
查询
hey guys, i am trying to program an auction in C#, using Microsoft SQL Server 2012. i have a table of users with all of their details, and a table of goods with their main price. users should be able to price the goods in their profile, and then the admin of application can check the total results of what they have done in one grid view, it should be like an Excel sheet which has a name column , goods name column, and other columns count must be depended to number of codes of goods available. i mean a dynamic one.
but since i'm new to such stuffs i'm a little confused what is the best way to do this.
What I have tried:
i thought it's better to have another table which has the id of user, id of good, and users suggested price, but then i didn't know how to use them.
Use The Joins Concept..
Like
Inner join
Right Join
Left Join
In Query
这篇关于如何在1个网格视图中使用不同数据库表的不同列?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!