zoukankan      html  css  js  c++  java
  • 选择表达式

    条件表达式
       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 " = ";

    萌橙 你瞅啥?
  • 相关阅读:
    vba 填写 Workbok 名片
    VBA 插入和删除工作表
    VBA for each 循环语句
    VBA 中的各种循环
    VBA 的 Join 函数
    VBA 计算数组的最大索引和最小索引
    VBA 变量赋值
    VBA 声明变量
    观察样本的变异程度
    python 将数据写入 Excel 表格
  • 原文地址:https://www.cnblogs.com/daimaxuejia/p/6831299.html
Copyright © 2011-2022 走看看