Like SQL Cassandra use the INSERT INTO command to create data into a table.
Insert Data:
Syntax:
INSERT INTO table_name
(column1,column2, column3 ....)
VALUES (val1, val2, val3 ....)
USING <option>
Example:
INSERT INTO employees
(id, city, name, phone, salary)
VALUES ( 2, 'Dhaka', 'Sarlar', 29345345, 3454 );
INSERT INTO employees
(id, city, name, phone, salary)
VALUES ( 3, 'Rangpur', 'Hasan', 01243545, 35345 );
Check inserted data:
SELECT * FROM employees;