首页> 外文期刊>Access Advisor >Control Your Business Logic With Transact-SQL
【24h】

Control Your Business Logic With Transact-SQL

机译:使用Transact-SQL控制您的业务逻辑

获取原文
获取原文并翻译 | 示例

摘要

Often, your business logic will comprise complex patterns, and you'll need flexible tools to accommodate those twists and turns. Fortunately, Transact-SQL (T-SQL) supports conditional logic concepts. Within the context of a development language, a conditional logic statement is part of a larger set of statements known as flow-of-control statements. Flow-of-control statements determine which statements to execute, and in what order to execute them. Flow-of-control statements handle both looping and branching duties within a computer language. Within T-SQL, you'll find two conditional statements: IF...ELSE and CASE. If you're like most of us, you'll use IE..ELSE and CASE a lot. In fact, you may find you use IE..ELSE more than just about any other statement. That's because these two statements let your application make decisions. For instance, either statement could determine which discount rate to apply to each customer (when you have varying levels). You might run one or the other to list employees that deserve a commission bonus and how much if commission percentages are based on sales.
机译:通常,您的业务逻辑将包含复杂的模式,并且您将需要灵活的工具来适应这些曲折。幸运的是,Transact-SQL(T-SQL)支持条件逻辑概念。在开发语言的上下文中,条件逻辑语句是称为控制流语句的较大语句集的一部分。控制流语句确定要执行的语句以及执行顺序。控制流语句处理计算机语言内的循环和分支任务。在T-SQL中,您将找到两个条件语句:IF ... ELSE和CASE。如果您像我们大多数人一样,将经常使用IE..ELSE和CASE。实际上,您可能会发现使用IE..ELSE的机会远超过其他任何声明。这是因为这两个语句使您的应用程序可以做出决定。例如,这两个语句都可以确定要对每个客户应用的折扣率(当您具有不同的级别时)。您可能会运行一个或另一个来列出应得的佣金奖金,以及佣金百分比基于销售额的多少。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号