如果数据库中chr_Tanka_ctrl字段有可能为空,要想下面这样进行比较 WHERE sb.Append(" ISNULL(chr_Tanka_ctrl, '') = @chr_Tanka_ctrl") 纪念!