我有一个像这样的mysql表:
mysql> select * from pt_onhand where pn = '000A569011';
+------------+-----+----+--------+------------+---------+--------------+-----+
| pn | pa | mn | ACTIVE | locate | onhand | avg_cost | whs |
+------------+-----+----+--------+------------+---------+--------------+-----+
| 000A569011 | P/A | | | AA-112 | 13.0000 | 0.0000000000| |
| 000A569011 | P/A | | | PF120136.1 | 1.0000 | 5.4785156200 | |
+------------+-----+----+--------+------------+---------+--------------+-----+
Run Code Online (Sandbox Code Playgroud)
我想执行这样的查询:
mysql> select sum(onhand),max(locate),avg_cost from pt_onhand where pn = '000A569011' group by pn;
+-------------+-------------+--------------+
| sum(onhand) | max(locate) | avg_cost |
+-------------+-------------+--------------+
| …Run Code Online (Sandbox Code Playgroud) 我想将Java代码从源文件夹复制到目标文件夹并进行编译,但需要排除一些测试代码.我怎样才能复制非测试代码?例如,我想包括bb/app/lite2和排除bb/app/test1,bb/app/cg...
我知道我可以使用exclude元素,但我不想写出这么多排除模式.所以我可以使用:
<exclude name="bb/app/**">然后使用<include name="bb/app/lite2">?