【问题标题】:Clojure java.jdbc delete-rowsClojure java.jdbc 删除行
【发布时间】:2012-06-14 00:11:56
【问题描述】:

在 clojure 中使用 java.jdbc 时,可以使用带有复杂 WHERE 语句的 delete-rows。例子是

(delete-rows :blogs ["id=?" id])

我想要这样的东西:

(delete-rows :blogs ["id=?" id "user_id=?" user_id])

【问题讨论】:

    标签: jdbc clojure


    【解决方案1】:
    (delete-rows :blogs ["id=? and user_id=?" id user_id])
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-06-28
      • 1970-01-01
      • 1970-01-01
      • 2013-03-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多