English 中文(简体)
扭曲的下降价值是一种好的做法。
原标题:storing drop-down values, what is a good approach

你们有一个网站,有几家从后台数据库中的人口下降。 目的是将这些价值储存在数据库中,并在你填写表格时予以检索。

我看到了两种做法:

(1) 每个清单类型一个表格:

profession_type
|id|value|

hobby_type
|id|value|

2) 所有研究价值表:

|id|type           |value|
|0 |profession_type|value|
|1 |profession_type|value|
|2 |profession_type|value|
|3 |hobby_type     |value|
|4 |hobby_type     |value|
|5 |hobby_type     |value|

两者是否有客观优势。 第2号似乎更为笼统(从表格中选择,按类型分类,以填平具体的下降幅度),但是,如果你使用第1号标准,该表将大得多。 而且,如果你使用第2号,所有外国钥匙都指同一张巨大的表格。 这似乎不是一个大事,但在我看来,这种做法更趋复杂。

最佳回答

页: 1 您可以检索和收集所有信息,即使你增加新的类型,也不必改变贵国的数据库或检索逻辑。

如果您在增加和修改表格,你需要联系你的数据库图解,了解今后所有变化和新表格的检索代码。

此外,你对议席规模的关切是,PROBABLY没有根据。 除非有数百万人,否则就会被罚款。 I m 想象数以百计的千分之十? 数据库可以轻易处理。

问题回答

从报告角度看,第2号令使事情变得更加困难,特别是如果你重新使用直接打入数据库的工具,如SSRS或表U。 你们需要把储存在程序或观点中,以便提出报告。 问题在于,在很多报告工具中,很难加入一个表格。

是的,我完全理解,在新的表格中,每当你想重新制定申请时,每增加一次新的退缩,都会给你带来痛苦,但是,通过选择一,你会再次拯救一位贫穷的联邦调查局开发商的后方,他正在由总裁 y。





相关问题
PHP Combo Box AJAX Refresh

I have a PHP page that currently has 4 years of team positions in columns on the page. The client wants to select the players in positions and have first, second and thrid choices. Currently the page ...

jquery + ajax + json + fill dropdown list not working

I m pretty sure i am almost there....but i cannot figure out how to iterate through json objects and fill a dropdown list. Here is the js code: My JSON data returned:{"name":"County1","name":"County1"...

Gridviews and DropdownLists

Is it possible to change the data source of a dropdown list in a gridview from another dropdown list selected index changed method in the same gridview? for example I have a dropdown that needs to ...

Adding a new value to the drop down list box

I have a drop down list box which has one of the values to be others. I want to move these value to the last. Please help me with this. The code i am using is as follows ddlAssetsCountryOthersone....

Show hide div using codebehind

I have a DropDownList for which I am trying to show a div OnSelectedIndexChanged but it says OBJECT REQUIRED. I am binding the DataList in that div: aspx: <asp:DropDownList runat="server" ID="...

Why might dropdownlist.SelectedIndex = value fail?

I have a dropdown list that I am binding to a datatable. Here is the code I am using to do it: ddlBuildAddr.DataSource = buildings ddlBuildAddr.DataTextField = "buildingName" ddlBuildAddr....

热门标签