Comments (4)
大哥,为啥不分成几个 SQL 写涅? 效率差很多吗? 这样反而更不好让 DBA 优化吧
from nutz.
呵呵。这句在1.37里是好的。
from nutz.
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.
1.b.38 对 SQL 做了稍微严格的检查, 我认为如果未知类型,就直接执行而不抛错就是了
在 1.b.39 里改一下吧
from nutz.
Related Issues (20)
- 查出来的tinyint字段被转成了bool值 HOT 3
- 【建议】新增:Record转T类型方法 HOT 2
- 【建议】Record.getString,支持默认值 HOT 1
- FieldMatcher lock&actived 逻辑存在bug,不识别@Column hump& value 定义的alias HOT 1
- 大佬们,感觉最近更新节奏慢了啊 HOT 1
- dao生成SQL有误 HOT 2
- MethodHandles.lookup()找不到defineClass HOT 1
- Lang.getIP(request) 取值不正确 HOT 4
- 字段是对象list时查询出来的是List<NutMap>? HOT 1
- EL表达式运算符优先级不对 HOT 1
- SqlTemplate无法把字段更新为NULL HOT 1
- mirrorCache内存泄露 HOT 5
- 老大记得**仓库发个新包,好久没新包了 HOT 2
- nutz-integration-spring忘了打包发布 HOT 1
- org.nutz.mvc.impl.Loadings中调用ioc.get(ModuleScanner.class, nm)可能会导致NPE错误 HOT 2
- 请问Nutz中Dao如何使用多级的自关联查询 HOT 3
- 字符串工具类 Strings.trimLeft 方法参数传 " 0" 的时候返回了 “”
- Castors.addCastor 报java.lang.InstantiationException错误
- Dao里通过Chain操作的接口,没有触发PojoInterceptor.onEvent
- Temporary File Information Disclosure Vulnerability
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nutz.