瀏覽代碼

add example sql

Daniel Sheffield 6 月之前
父節點
當前提交
c02ace569b
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      example.sql

+ 6 - 0
example.sql

@@ -0,0 +1,6 @@
+-- Insert a tag if it got missed
+--INSERT INTO tags_map (transaction_id, tag_id) VALUES(2247, 11);
+SELECT * FROM transactions t
+	JOIN tags_map ON (transaction_id = t.id)
+	JOIN tags tg ON (tag_id = tg.id)
+	WHERE transaction_id = 2247;