• 选择表达式


    条件表达式
       switch (op.ToLower())
                {
                    case "add":
                        return " + ";
                    case "bitwiseand":
                        return " & ";
                    case "bitwisenot":
                        return " ~ ";
                    case "bitwiseor":
                        return " | ";
                    case "bitwisexor":
                        return " ^ ";
                    case "divide":
                        return " / ";
                    case "equal":
                        return " = ";
                    case "greater":
                        return " > ";
                    case "greaterorequal":
                        return " >= ";
                    case "isnull":
                        return " is null ";
                    case "isnotnull":
                        return " is not null ";
                    case "less":
                        return " < ";
                    case "lessorequal":
                        return " <= ";
                    case "like":
                        return " like ";
                    case "startwith":
                        return " like ";
                    case "endwith":
                        return " like ";
                    case "modulo":
                        return " % ";
                    case "multiply":
                        return " * ";
                    case "notequal":
                        return " <> ";
                    case "subtract":
                        return " - ";
                    case "and":
                        return " and ";
                    case "or":
                        return " or ";
                    case "in":
                        return " in ";
                    case "notin":
                        return " not in ";
                    default:
                        return " = ";

    萌橙 你瞅啥?
  • 相关阅读:
    centos7安装mysql5.7
    centos7 多网卡绑定bond0 之mod4
    二、Windows Server 2016 AD 组织单位、组、用户的创建
    一、Windows Server 2016 AD服务器搭建
    (2)Linux中经常说的CPU上下文切换是什么意思
    (1)Linux系统中到底应该怎么理解系统的平均负载
    centos安装Docker与使用&&构建业务镜像挂载卷harbor仓库的高可用及网络模式和资源限制介绍
    windows和linux各类服务常用端口号汇总
    CentOS7.6搭建LAMP-wordpress论坛搭建
    centos下iptables防火墙规则用法和概述
  • 原文地址:https://www.cnblogs.com/daimaxuejia/p/6831299.html
Copyright © 2020-2023  润新知