The expression that is the predicate for the if statement. This should be a boolean expression. C# 複製 public Microsoft.SqlServer.TransactSql.ScriptDom.BooleanExpression Predicate { get; set; } Property Value B
IfStatement 类型公开以下成员。 属性 展开表 名称说明 ElseStatement Gets the statement that will be executed if the predicate evaluates false. Optional, may be nullnull 引用(在 Visual Basic 中为 Nothing). FirstTokenIndex Gets or sets the first token index. (从 TSqlFragment 继承。) FragmentLeng...
Use the IF statement for control flow, which is unlike theIIf (MDX)function and theCASE Statement (MDX)that can only be used to return values or objects. Examples In the following example, the scope is restricted to the Country level of the Customers Geography hierarchy in the Customers dime...
어셈블리: Microsoft.SqlServer.TransactSql.ScriptDom(Microsoft.SqlServer.TransactSql.ScriptDom.dll) 구문C# 복사 [SerializableAttribute] public class IfStatement : TSqlStatement IfStatement 유형에서 다음 멤버를 표시합니다....
IfStatement.Accept 方法项目 2011/08/12 本文内容 语法 .NET Framework 安全性 请参见 给定访问者的入口点。 命名空间: Microsoft.Data.Schema.ScriptDom.Sql 程序集: Microsoft.Data.Schema.ScriptDom.Sql(在 Microsoft.Data.Schema.ScriptDom.Sql.dll 中) 语法 C# 复制 public override void Accept( T...
Get started with Microsoft SQL Server downloads. Choose a SQL Server trial, edition, tool, or connector that best meets your data and workload needs.
{ sql_statement | statement_block } 使用语句块定义的任何 Transact-SQL 语句或语句分组。 除非使用了语句块,IF否则或ELSE条件只能影响一个 Transact-SQL 语句的性能。 若要定义语句块,请使用流控制关键字BEGIN和END。 注解 IF...ELSE可以在批处理、存储过程和即席查询中使用构造。 在存储过程中使用此构造时,通...
SQL 复制 SELECT student.StudentID, CASE Student.Age WHEN -1 THEN 100 ELSE Student.Age END, Student.Age FROM Student F# 复制 // Using if statement to alter results for special value. query { for student in db.Student do select (if student.Age.HasValue && student.Age.Value = -1 th...
{ sql_statement | statement_block } 使用语句块定义的任何 Transact-SQL 语句或语句分组。 除非使用了语句块,IF否则或ELSE条件只能影响一个 Transact-SQL 语句的性能。 若要定义语句块,请使用流控制关键字BEGIN和END。 注解 IF...ELSE可以在批处理、存储过程和即席查询中使用构造。 在存储过程中使用此构造时,通...
Grid pane and SQL pane are updated to reflect your change. For example, if you select a column for output in a table, view, user-defined function, or subquery window in the Diagram pane, the Query Designer adds the data column to the Grid pane and to the SQL statement in the SQ...