Environmental Science:
nutz 1.b.51
MySQL 5.1. x is installed by default and the configuration has not been modified
Dao.js only configures the most basic content (Database driver class name, jdbcurl, user name, password)
Dao.js uses dhcp, c3p0, druid, etc Connection pool implementation
Phenomenon:
Sleep well and get up the next day for the first time After being interviewed and reporting an error, it will be normal
Why? Tell me why ??!!
The answer is still in the next issue. Welcome to answer
--------------------------------------Great dividing line------------------------------------------------------------------
Answer of last issue: Cnd.exps To solve
Cnd cnd = Cnd.where(Cnd.exps("name","=","wendal").or("name","=","zozoh")) .and("age","<",40);
There are others Deprecated writing method , Please carefully erase the sql injection characters (using Sqls. EscapeSqlFieldValue handles unsafe values ) :
Literary writing, using Cnd.wrap
Cnd cnd = Cnd.wrap("(name='wendal' OR name='zozoh') AND age<40");
Dark cooking: The org. nutz. dao. util. cri. Static class is a dark way to build full static conditions
Cnd cnd = Cnd.where(new Static("(name='wendal' OR name='zozoh')")).and("age<40");