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

6 lines
134 B
MySQL
Raw Permalink Normal View History

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