Insert a single record into a table
INSERT INTO target_table VALUES (1, 'one');
INSERT INTO target_table (col_1, col_2) VALUES (2, 'two');
Insert multiple records in one go
The individual records to be inserted can be separated with commas:
INSERT INTO target_table VALUES
('record' , 'one' ),
('another' , 'record'),
…;
Note, that this variant does not work with
Oracle SQL (18c).
INSERT OR IGNORE
create table tq84_t(id integer primary key, val text unique);
insert or ignore into tq84_t (val) values ('foo');
insert or ignore into tq84_t (val) values ('bar');
insert or ignore into tq84_t (val) values ('foo');
insert or ignore into tq84_t (val) values ('baz');
select * from tq84_t;
insert or ignore is equivalent to insert on conflict ignore.