diff options
Diffstat (limited to 'gentoobrowse-api/service/sql/maintenance/categoryInsert.sql')
-rw-r--r-- | gentoobrowse-api/service/sql/maintenance/categoryInsert.sql | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gentoobrowse-api/service/sql/maintenance/categoryInsert.sql b/gentoobrowse-api/service/sql/maintenance/categoryInsert.sql new file mode 100644 index 0000000..27321a0 --- /dev/null +++ b/gentoobrowse-api/service/sql/maintenance/categoryInsert.sql @@ -0,0 +1,3 @@ +INSERT INTO gentoobrowse.categories(name) +SELECT ? +WHERE (NOT EXISTS (SELECT name FROM gentoobrowse.categories WHERE name = ?)) |