2个回答
展开全部
//如果是SQL的,那直接引用SQL的CASE WHEN 就行了,如果是C#的如下
switch( )
{
case "A":
"dsds"
break;
case "B":
CriteriaInfo += " like 'AO%' OR "
break;
case "C":
CriteriaInfo += " like 'AA%' OR "
break;
case "D":
CriteriaInfo += " like 'AC%' OR "
break;
case "E":
CriteriaInfo += " like 'AJ%' OR "
break;
DEF
CriteriaInfo += " like 'AF%' OR "
BREAK;
}
switch( )
{
case "A":
"dsds"
break;
case "B":
CriteriaInfo += " like 'AO%' OR "
break;
case "C":
CriteriaInfo += " like 'AA%' OR "
break;
case "D":
CriteriaInfo += " like 'AC%' OR "
break;
case "E":
CriteriaInfo += " like 'AJ%' OR "
break;
DEF
CriteriaInfo += " like 'AF%' OR "
BREAK;
}
追问
DEF是什么意思啊
追答
默认啊,DEF开头的,具体拼写我忘了
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
switch( )
{
case "A":
"dsds"
break;
case "B":
CriteriaInfo += " like 'AO%' OR "
break;
case "C":
CriteriaInfo += " like 'AA%' OR "
break;
case "D":
CriteriaInfo += " like 'AC%' OR "
break;
case "E":
CriteriaInfo += " like 'AJ%' OR "
break;
}
{
case "A":
"dsds"
break;
case "B":
CriteriaInfo += " like 'AO%' OR "
break;
case "C":
CriteriaInfo += " like 'AA%' OR "
break;
case "D":
CriteriaInfo += " like 'AC%' OR "
break;
case "E":
CriteriaInfo += " like 'AJ%' OR "
break;
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询