blob: bc8a02c8a07bc2f906eedcec8e5676a0ad6af15a [file]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="copyright" content="(C) Copyright 2025" />
<meta name="DC.rights.owner" content="(C) Copyright 2025" />
<meta name="DC.Type" content="concept" />
<meta name="DC.Title" content="Comments" />
<meta name="DC.Relation" scheme="URI" content="../topics/impala_langref.html" />
<meta name="prodname" content="Impala" />
<meta name="prodname" content="Impala" />
<meta name="version" content="Impala 3.4.x" />
<meta name="version" content="Impala 3.4.x" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="comments" />
<link rel="stylesheet" type="text/css" href="../commonltr.css" />
<title>Comments</title>
</head>
<body id="comments">
<h1 class="title topictitle1" id="ariaid-title1">Comments</h1>
<div class="body conbody">
<p class="p">
Impala supports the familiar styles of SQL comments:
</p>
<ul class="ul">
<li class="li">
All text from a <code class="ph codeph">--</code> sequence to the end of the line is considered a comment and ignored.
This type of comment can occur on a single line by itself, or after all or part of a statement.
</li>
<li class="li">
All text from a <code class="ph codeph">/*</code> sequence to the next <code class="ph codeph">*/</code> sequence is considered a
comment and ignored. This type of comment can stretch over multiple lines. This type of comment can occur
on one or more lines by itself, in the middle of a statement, or before or after a statement.
</li>
</ul>
<p class="p">
For example:
</p>
<pre class="pre codeblock"><code>-- This line is a comment about a table.
create table ...;
/*
This is a multi-line comment about a query.
*/
select ...;
select * from t /* This is an embedded comment about a query. */ where ...;
select * from t -- This is a trailing comment within a multi-line command.
where ...;
</code></pre>
</div>
<div class="related-links">
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a class="link" href="../topics/impala_langref.html">Impala SQL Language Reference</a></div>
</div>
</div></body>
</html>