DESCRIBE TASK¶
Mostra informações sobre uma tarefa.
DESCRIBE pode ser abreviado como DESC.
- Consulte também:
Sintaxe¶
DESC[RIBE] TASK <name>
Parâmetros¶
nameEspecifica o identificador da tarefa a ser descrita. Se o identificador contiver espaços ou caracteres especiais, toda a cadeia de caracteres deverá ser delimitada por aspas duplas. Os identificadores delimitados por aspas duplas também diferenciam letras maiúsculas de minúsculas.
Saída¶
O comando fornece a mesma saída que SHOW_TASKS.
Notas de uso¶
Somente retorna linhas para o proprietário de uma tarefa, ou seja, a função com o privilégio OWNERSHIP em uma tarefa) ou uma função com o privilégio MONITOR ou OPERATE em uma tarefa.
Para pós-processar a saída deste comando, você pode usar o operador de canal (
->>) ou a função RESULT_SCAN. Ambos os constructos tratam a saída como um conjunto de resultados que você pode consultar.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.
Exemplos¶
Criar uma tarefa de exemplo:
CREATE TASK mytask ( ... );
Mostrar informações sobre a tarefa:
DESC TASK mytask;
Para exemplos de saída, consulte SHOW_TASKS.