Giter Site home page Giter Site logo

1.38执行sql语句有问题. about nutz HOT 4 CLOSED

nutzam avatar nutzam commented on May 4, 2024
1.38执行sql语句有问题.

from nutz.

Comments (4)

zozoh avatar zozoh commented on May 4, 2024

大哥,为啥不分成几个 SQL 写涅? 效率差很多吗? 这样反而更不好让 DBA 优化吧

from nutz.

wangyingdong avatar wangyingdong commented on May 4, 2024

呵呵。这句在1.37里是好的。

from nutz.

wangyingdong avatar wangyingdong commented on May 4, 2024

1.38 里
Sql sql = Sqls.create("select count(*) as c from corp a inner join web b on a.id = b.Corpid where a.id =1");
dao.execute(sql);

出错了,换成 fetchInt 就可以了
Sql sql = Sqls.fetchInt("select count(*) as c from corp a inner join web b on a.id = b.Corpid where a.id =1");
dao.execute(sql);

Wendal~兽:估计是因为没有加入默认callback

from nutz.

zozoh avatar zozoh commented on May 4, 2024

1.b.38 对 SQL 做了稍微严格的检查, 我认为如果未知类型,就直接执行而不抛错就是了
在 1.b.39 里改一下吧

from nutz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.