我尝试了下面的命令。这是 a DataSource
of aGridView
并且写在我的.aspx
页面上,所以我不能使用像""
or之类的字符''
。这段代码不会给我任何回报。我还尝试将 (string.empty, "" and null) 作为参数传递给codebehind
. 没有任何效果,我不知道还能做什么......
SelectCommand="SELECT ch.id, sit.descricao as situacao, resp.responsavel, ch.dt_cadastro, ch.previsao_termino, func.descricao as funcionalidade,
proj.descricao as projeto ,pr.id as prid, pr.prioridade, clb.clube
FROM chamados AS ch
INNER JOIN prioridades as pr ON ch.prioridade = pr.id
INNER JOIN clubes as clb ON ch.clube = clb.id
INNER JOIN responsaveis as resp ON ch.responsavel = resp.id
INNER JOIN situacoes as sit ON ch.situacao = sit.id
INNER JOIN projetos as proj ON ch.projeto = proj.id
INNER JOIN funcionalidades as func ON ch.funcionalidade = func.id WHERE ch.responsavel IS NULL"
Obs:
我要过滤的字段,因为null
它们是int32
字段。(我知道那int32
不可能null
)但我只是不知道该怎么做,所以我尝试了所有想到的东西。