I want to insert a record into a sqlite table if its actually not inserted.
Let\'s say it has three fields pk, name, address
I want to INSERT new record with
If you can't make use of a UNIQUE INDEX in combination with INSERT INTO or INSERT OR IGNORE INTO, you could write a query like this;
UNIQUE INDEX
INSERT INTO
INSERT OR IGNORE INTO
INSERT INTO table (column) SELECT value WHERE NOT EXISTS (SELECT 1 FROM table WHERE column = value)