If you want to find duplicate data (by one or several criterias) and select the actualrows. This should also work, maybe give it try. SELECT id, COUNT ...
分类:
其他好文 时间:
2016-05-16 12:36:11
阅读次数:
130
HTML:<!DOCTYPE ><html><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>无标题文档</title> <style type="text/css"> * { marg ...
分类:
其他好文 时间:
2016-05-16 12:33:11
阅读次数:
146
未知宽高元素水平垂直居中 一、vertical-align:middle 二、transform 三、利用弹性盒模型 四、表格 ...
分类:
其他好文 时间:
2016-05-16 12:34:14
阅读次数:
133
a.添加记录(一次插入一行记录) insert into 表名(字段名,字段名...) values (字段值,字段值...) insert into person (id,name,age) values (1,'wangfeng',40);//字符串用''单引号 insert into pers ...
分类:
其他好文 时间:
2016-05-16 12:32:49
阅读次数:
588
转自:http://blog.csdn.net/xiazdong/article/details/7217022/ 一、常识了解 1.GBK包含GB2312,即如果通过GB2312编码后可以通过GBK解码,反之可能不成立; 2.Java.nio.charset.Charset.defaultChar ...
分类:
其他好文 时间:
2016-05-16 12:33:53
阅读次数:
141
4)自连接 关联双方的表是同一个表。 //查询员工编号,员工名,上级编号,上级名称 select e.empno,e.ename,e.mgr,e1.ename from EMP e left outer join EMP e1 on(e.mgr=e1.empno); //查询员工编号,员工名,所在部 ...
分类:
其他好文 时间:
2016-05-16 12:32:29
阅读次数:
138
1 public IRow SetTJRow(HSSFWorkbook wb, ISheet sh) 2 { 3 #region 设置表头 4 IRow row1 = sh.CreateRow(0); 5 row1.Height = 20 * 20; 6 ICell icell1top = row1 ...
分类:
其他好文 时间:
2016-05-16 12:33:08
阅读次数:
228
4.WHERE中使用AND,OR连接多个过滤条件 AND:并且的关系,要求条件同时满足 OR:或者的关系,要求条件满足某一个就可以 //查询10部门,基本工资大于2000的员工名和工资额 select ename,sal from emp where deptno=10 and sal>2000; ...
分类:
其他好文 时间:
2016-05-16 12:32:13
阅读次数:
131
//查询工资大于等于2000的人 select * from person salary >= 2000; //查询名字等于scott的人 select * from person name='scott' //查询不属于10这个部门的人 select * from person deptno != ...
分类:
其他好文 时间:
2016-05-16 12:31:04
阅读次数:
125
这道题的直观思路不难,但是要注意很多细节问题。 首先,x要考虑整数、小数和0的情况。0不能取负数次方,0的0次方没有数学意义,可以取0也可以取1。 由于这里要处理x为小数的情况,因此x的类型为double,要判断一个double类型的x是否等于0,不能直接用(x==0.0),因为在计算机内表示小数时 ...
分类:
其他好文 时间:
2016-05-16 12:32:42
阅读次数:
205
case函数 (适合区间,>,<判断) case when 判断表达式 then when 判断表达式 then ..... end select deptno,count(*) total, sum(case when sal>=2000 then 1 end) great, sum(case w ...
分类:
其他好文 时间:
2016-05-16 12:32:53
阅读次数:
127
原文:VS下对Resx资源文件的操作 读取 using System.IO; using System.Resources; using System.Collections; using System.Reflection; namespace ResxEdit { class ResxDemo ... ...
分类:
其他好文 时间:
2016-05-16 12:32:11
阅读次数:
224
代码里面;在oncreate()方法里面调用;还需要先定义一个全局变量:private boolean isHidden = true; 在xml里面的布局; ...
分类:
其他好文 时间:
2016-05-16 12:29:49
阅读次数:
373
(1)登录mysql mysql -uroot; (2)查看当前有哪些数据库 show databases; (3)创建一个新的数据库 比如,创建一个名称为jsd1310db的 数据库,并指定缺省的字符集为utf-8 create database jsd1310db default charact ...
分类:
其他好文 时间:
2016-05-16 12:30:43
阅读次数:
139