1.select distinct 语句用于返回唯一不同的值

2.combox控件获取数据库中的值:

while (dataReader.Read())
                {
                    comboBox1.Items.Add(dataReader["type".ToString()]);
                }

C#之combox控件从数据库中获取值,并显示在下拉框中

相关文章:

  • 2021-11-29
  • 2021-07-03
  • 2021-11-18
  • 2022-12-23
  • 2022-02-20
  • 2021-12-10
  • 2021-12-09
猜你喜欢
  • 2021-11-29
  • 2021-07-05
  • 2022-12-23
  • 2022-12-23
  • 2022-01-28
  • 2022-12-23
相关资源
相似解决方案