This topic describes other common statements used for your business development when you use MaxCompute SQL.

Cost estimation

Estimates the cost of executing an SQL job based on the amount of input data, number of user-defined functions (UDFs), and complexity of the job.

Note The result is for reference only. You can view your bill for the actual costs.
  • Syntax
    cost sql <sql_sentence>;
  • Parameter

    sql_sentence: the SQL statement for which you want to estimate the execution cost.

  • Example
    cost sql select * from sale_detail;
    Returned results:
    ID = 20150715113033121xxxxxxx
    Input:0 Bytes