Comments in Impala SQL statements

You can write multiple queries into a file and then let Impala run your queries directly by passing the query file name. When lots of queries are written in a file, you might require adding comments to specify what each query or a group of queries are, and adding comments to the query file will help you achieve your objective. Impala supports the following two kinds of comments with SQL statements:

  • -- Sequence (two dashes): All the text after -- Sequence is considered as a comment and ignored for processing. This comment is used mostly in commenting a complete line in multiline SQL statements.
  • /* this is a comment */:The text inside /* and */ will be considered as a comment and will not be processed. This comment is used mostly within the line but it can be stretched into multiple lines as well.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.189.186.109