DESCRIBE EVENT TABLE

이벤트 테이블 의 열을 설명합니다.

DESCRIBE는 DESC로 축약할 수 있습니다.

참고 항목:

ALTER TABLE(이벤트 테이블) , CREATE EVENT TABLE , SHOW EVENT TABLES

구문

DESC[RIBE] EVENT TABLE <name>
Copy

매개 변수

name

설명할 이벤트 테이블의 식별자를 지정합니다. 식별자에 공백이나 특수 문자가 포함된 경우 전체 문자열을 큰따옴표로 묶어야 합니다. 큰따옴표로 묶인 식별자도 대/소문자를 구분합니다.

사용법 노트

  • 이 명령은 테이블의 오브젝트 매개 변수를 표시하지 않습니다. SHOW PARAMETERS IN TABLE … 을 대신 사용하십시오.

  • 이 명령의 출력을 후처리하기 위해 파이프 연산자 (->>) 또는 RESULT_SCAN 함수를 사용할 수 있습니다. 두 구문 모두 출력을 쿼리할 수 있는 결과 세트로 간주합니다.

    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, specify SELECT "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.

my_logged_events 라는 이벤트 테이블의 열을 설명합니다.

DESC EVENT TABLE my_logged_events;
Copy