SQL语句
1、 查找表中某一字段有重复的记录
select DATAID, UT, count(UT) as num from sci148_2 group by UT having count(UT) > 1 order by num;
Java程序
1、 控制小数显示位数
Import java.text.DecimalFormat; DecimalFormat xiaoshu = new DecimalFormat("0.000");//控制小数位数,小数点后3位 Double d = 1.3234; System.out.println(xiaoshu.format(d));