DESCRIBE TASK¶
Affiche des informations sur une tâche.
DESCRIBE peut être abrégé en DESC.
- Voir aussi :
Syntaxe¶
DESC[RIBE] TASK <name>
Paramètres¶
nameIndique l’identificateur de la tâche à décrire. Si l’identificateur contient des espaces ou des caractères spéciaux, toute la chaîne doit être délimitée par des guillemets doubles. Les identificateurs entre guillemets doubles sont également sensibles à la casse.
Sortie¶
La commande fournit la même sortie que SHOW_TASKS.
Notes sur l’utilisation¶
Renvoie uniquement les lignes du propriétaire d’une tâche (c’est-à-dire le rôle avec le privilège OWNERSHIP sur une tâche) ou un rôle avec le privilège MONITOR ou OPERATE sur une tâche.
Pour post-traiter la sortie de cette commande, vous pouvez utiliser la syntaxe opérateur de canal (
->>) ou la fonction RESULT_SCAN. Les deux constructions traitent la sortie comme un jeu de résultats que vous pouvez interroger.For example, you can use the pipe operator or RESULT_SCAN function to select specific columns from the SHOW command output or filter the rows.
When you refer to the output columns, use double-quoted identifiers for the column names. For example, to select the output column
type, specifySELECT "type".You must use double-quoted identifiers because the output column names for SHOW commands are in lowercase. The double quotes ensure that the column names in the SELECT list or WHERE clause match the column names in the SHOW command output that was scanned.
Exemples¶
Créer un exemple de tâche :
CREATE TASK mytask ( ... );
Affichez les informations sur la tâche :
DESC TASK mytask;
Pour des exemples de sortie , consultez SHOW_TASKS.