tencent cloud

Cloud Log Service

AS Syntax

Download
Focus Mode
Font Size
Last updated: 2026-05-14 21:13:54
The AS clause is used to specify an alias for a column (KEY).

Syntax Format

* | SELECT column name (KEY) AS alias

Syntax Sample

Creating a Chinese Alias

* | SELECT remote_addr AS "client IP", request_time AS "request time (unit: second)"
Note:
If the alias contains Chinese or other special characters, double quotation marks should be used.

Counting access requests

* | SELECT COUNT(*) AS PV


Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback