Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个值列表,我想默认为除 1 之外的所有值。但我不想添加 10 个唯一值函数,<>“值”可能吗?
您的多值参数是否基于查询?如果是这样,只需从排除您要忽略的值的查询中选择参数的默认值。
例如,如果从查询中获取参数值:
SELECT Code, Description FROM CodeTable
然后使用以下查询作为您的默认值:
SELECT Code, Description FROM CodeTable WHERE Code <> "NotThisCOde"