Condividi tramite


Classe SelectStatement

Represents a SELECT statement.

Gerarchia di ereditarietà

System.Object
  Microsoft.SqlServer.TransactSql.ScriptDom.TSqlFragment
    Microsoft.SqlServer.TransactSql.ScriptDom.TSqlStatement
      Microsoft.SqlServer.TransactSql.ScriptDom.StatementWithCtesAndXmlNamespaces
        Microsoft.SqlServer.TransactSql.ScriptDom.SelectStatement
          Microsoft.SqlServer.TransactSql.ScriptDom.SelectStatementSnippet

Spazio dei nomi  Microsoft.SqlServer.TransactSql.ScriptDom
Assembly:  Microsoft.SqlServer.TransactSql.ScriptDom (in Microsoft.SqlServer.TransactSql.ScriptDom.dll)

Sintassi

'Dichiarazione
<SerializableAttribute> _
Public Class SelectStatement _
    Inherits StatementWithCtesAndXmlNamespaces
'Utilizzo
Dim instance As SelectStatement
[SerializableAttribute]
public class SelectStatement : StatementWithCtesAndXmlNamespaces
[SerializableAttribute]
public ref class SelectStatement : public StatementWithCtesAndXmlNamespaces
[<SerializableAttribute>]
type SelectStatement =  
    class 
        inherit StatementWithCtesAndXmlNamespaces 
    end
public class SelectStatement extends StatementWithCtesAndXmlNamespaces

Nel tipo SelectStatement sono esposti i membri seguenti.

Costruttori

  Nome Descrizione
Metodo pubblico SelectStatement Initializes a new instance of the SelectStatement class.

In alto

Proprietà

  Nome Descrizione
Proprietà pubblica ComputeClauses Gets or sets the compute by clauses. May have zero elements.
Proprietà pubblica FirstTokenIndex Gets or sets the first token index. Ereditato da TSqlFragment.
Proprietà pubblica FragmentLength Gets the fragment length. Ereditato da TSqlFragment.
Proprietà pubblica Into Gets or sets the into table name.
Proprietà pubblica LastTokenIndex Gets or sets the last token index. Ereditato da TSqlFragment.
Proprietà pubblica OptimizerHints Gets or sets the optional optimizer hints. Ereditato da StatementWithCtesAndXmlNamespaces.
Proprietà pubblica QueryExpression Gets or sets the main body of the select statement.
Proprietà pubblica ScriptTokenStream Gets or sets a list of token streams. Ereditato da TSqlFragment.
Proprietà pubblica StartColumn Gets the starting column. Ereditato da TSqlFragment.
Proprietà pubblica StartLine Gets the starting line. Ereditato da TSqlFragment.
Proprietà pubblica StartOffset Gets the fragment start offset value. Ereditato da TSqlFragment.
Proprietà pubblica WithCtesAndXmlNamespaces Gets or sets the With common table expression and xml namespaces clause. Optional, may be nullriferimento Null (Nothing in Visual Basic).. Ereditato da StatementWithCtesAndXmlNamespaces.

In alto

Metodi

  Nome Descrizione
Metodo pubblico Accept Accepts visitor. Esegue l'override di TSqlFragment.Accept(TSqlFragmentVisitor).
Metodo pubblico AcceptChildren Accepts visitor for Children. Esegue l'override di StatementWithCtesAndXmlNamespaces.AcceptChildren(TSqlFragmentVisitor).
Metodo pubblico Equals Ereditato da Object.
Metodo protetto Finalize Ereditato da Object.
Metodo pubblico GetHashCode Ereditato da Object.
Metodo pubblico GetType Ereditato da Object.
Metodo protetto MemberwiseClone Ereditato da Object.
Metodo pubblico ToString Ereditato da Object.

In alto

Protezione dei thread

I membri static (Shared in Visual Basic) pubblici di questo tipo sono affidabili. Non è invece garantita la sicurezza dei membri dell'istanza.

Vedere anche

Riferimento

Spazio dei nomi Microsoft.SqlServer.TransactSql.ScriptDom