查询数据的时候 直接把值 给查询出来。select B.id,A.TypeName from A inner join B on B.TypeId = A.Id或者select (case a.TypeId when 1 than '是' else ‘否’ end) as typeName from table as a
可以在查询数据的时候就处理好。 select case(列1) when 0 then '是' else '否' end as 列4,列2,列3 from table1 where 1=1
inner join B on B.TypeId = A.Id或者select (case a.TypeId when 1 than '是' else ‘否’ end) as typeName from table as a
select case(列1) when 0 then '是' else '否' end as 列4,列2,列3 from table1 where 1=1
public void getcbogzlx()
{
GZ_GzlxBLL getgzlxdb = new GZ_GzlxBLL();
this.comboBox1.DataSource = getgzlxdb.GetGzlxData();
this.comboBox1.DisplayMember = "gzmc";
this.comboBox1.ValueMember = "bh";
}
默认是显示第一个值,如何做到默认是没有选择值的并且能够保存 comboBox2.SelectedIndex = -1;提示有null不能够保存