Data.Win.ADODB.TADOCommand.CommandText
Delphi
property CommandText: WideString read FCommandText write SetCommandText;
C++
__property System::WideString CommandText = {read=FCommandText, write=SetCommandText};
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
property | published | Data.Win.ADODB.pas Data.Win.ADODB.hpp |
Data.Win.ADODB | TADOCommand |
Description
Indique la commande à exécuter.
Utilisez CommandText pour spécifier la commande à exécuter en utilisant le composant commande ADO. CommandText est la représentation textuelle d'une commande sous la forme d'une instruction SQL, d'un nom de table ou du nom d'une procédure stockée à exécuter.
ADOCommand1.CommandText := 'DROP TABLE Employee1986';
ADOCommand1->CommandText = "DROP TABLE Employee1986";
Si la commande contient des paramètres, comme ce peut être le cas pour une instruction SQL ou une procédure stockée, vous pouvez y accéder via la propriété Parameters.