1
0
dwelling-radio/internal/statistics/db/sqlite/queries/song_add.sql

6 lines
134 B
SQL

INSERT INTO `song`
(`artist`, `title`)
VALUES (?, ?)
ON CONFLICT DO
UPDATE SET `song_id`=`song_id`
RETURNING `song_id`;