In this lesson, I will show you how to get insert or update of a column and how to add TTL on update and insert query.
SELECT city, name, writetime(name)
FROM employees;
UPDATE employees USING TTL 30 SET name='Bob' WHERE id = 1;
Column will be deleted after given seconds here 30 seconds.
INSERT INTO employees (id, city, name)
VALUES ( 4, 'Rangpur', 'Jon Doe')
USING TTL 20;