Sql 查询条件设置成 where 1<>2
这句条件起什么作用?
一般什么情况下可以这样使用?
另外下面这样的语句中有什么错误的地方吗?
if (status != 0)
{
switch(status)
{
case 1: con += "and sendtime < begintime";break;
case 2: com += "and sendtime >= begintime and sendtime <= endtime";break;
case 3: con += "and sendtime > endtime"; break;
}
returen con; //---------我主要想明白要不要这句return con;!!!!
}