Comments
are used to document your code. Cassandra supports both single line and
multi-line comments.
Single line comments
Single
line comments begin with either double dashes (--) or double slash (//).
Multi line comments
Multi line
comments place in between /* and */
Example
-- This is
a comment
// This is
a comment too
/* This is
a multi-line comment */
CREATE TABLE IF NOT EXISTS cassandratutorial.employee (
id INT, -- Id of the employee
firstName VARCHAR, // First name of the employee
PRIMARY KEY((id, firstName)) /*
Primary key of the employee
*/
) WITH comment = 'Table to store Employee information';
No comments:
Post a Comment