我们如何在 activejdbc 中获得不同的行数?我尝试了许多不同的变体,但没有一个奏效
Tablename.count("?", "distinct id")
Tablename.count("distinct ?", "id") //missing expression
Base.exec("select count(distinct id) from tablename") //return 1 always (probably the count)
我们如何在 activejdbc 中获得不同的行数?我尝试了许多不同的变体,但没有一个奏效
Tablename.count("?", "distinct id")
Tablename.count("distinct ?", "id") //missing expression
Base.exec("select count(distinct id) from tablename") //return 1 always (probably the count)