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...
어셈블리: Microsoft.SqlServer.TransactSql.ScriptDom(Microsoft.SqlServer.TransactSql.ScriptDom.dll) 구문C# 복사 [SerializableAttribute] public class IfStatement : TSqlStatement IfStatement 유형에서 다음 멤버를 표시합니다....
The statement that will be executed if the predicate evaluates false. Optional, may be null. C# 复制 public Microsoft.SqlServer.TransactSql.ScriptDom.TSqlStatement ElseStatement { get; set; } Property Value TSqlStatement Applies to 产品版本 Microsoft.SQLServer.DacFx 140.3881.1, 150.18208.0, ...
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 BooleanExpression Applies to 產品版本 Microsoft.SQLServer.DacFx 140.3881.1, 150.18208....
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_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...
Note: You can enter optimizer hints for SQL statements, but the Query Designer might reformat them. If your statement cannot be represented in the Diagram and Grid panes, and if those panes are visible, the Query Designer displays an error and then offers you two choices: Return to the...