`
txin0814
  • 浏览: 218239 次
  • 性别: Icon_minigender_1
  • 来自: 湖南
社区版块
存档分类
最新评论
文章列表
select * from 表名 order by 字段名 COLLATE Albanian_BIN
-->生成测试数据 declare @科目表 table([科目ID] int,[科目编码] nvarchar(10),[科目名称] nvarchar(5)) Insert @科目表 select 1,N'1001',N'现金' union all select 2,N'1002',N'银行存款' union all select 3,N'1002-01',N'工商银行' union all select 4,N'1002-02',N'农业银行' union all select 100,N'2171',N'应交税金' union a ...
用mybatis查询时,传入一个字符串传参数,且进行判断时,会报 There is no getter for property named 'moduleCode' in 'class java.lang.String 错误写法: <select id="queryAllParentModule" resultType="jobModule" parameterType="jobModule"> select modulecode, modulename, ...
用firefox和chrome测试页面的时候,发现用javascript控制 tr 的显示隐藏时,当把tr的显示由“display:none”改为“display:block”时,该tr下的td内容合并到了第一个td里,也就是说,原先在td中设置的colspan属性无效了。     由于display属性设置为空时,默认为显示,因此将“display:block”改为“display:”就好了,解决了该问题。但具体是什么原因仍然不太清楚,有待以后研究。 用display隐藏Tabale的tr行在Firefox中问题的解决办法 在Firefox和Google的浏览器中用disp ...
<table border=1 cellSpacing=1 cellPadding=1 width="80%"> <tbody> <tr> <td>字号</td> <td>磅(pt)</td> <td>像素(px)</td> </tr> <tr style="FONT-SIZE: 8px" ...
public class CwFundsChangeExportExcel { private HSSFWorkbook wb = new HSSFWorkbook(); private HSSFSheet sheet = wb.createSheet(); public static void main(String[] args) {} /** * * @param wb * @param type * 1:head 2 je * @return */ public HSSFCellStyle set ...
记录下一些常用的函数,以便下次使用 /** * 格式化金额 * @param s * @param len * @return */ public static String formatMoney(String s, int len) { if (s == null || s.length() < 1) { return ""; } NumberFormat formater = null; double num = Double.parseDouble(s); if (len == ...
JAVA获取今天、明天、后天的具体月、日,以当前系统日期为主: public String returnDate(int count) { Calendar strDate = Calendar.getInstance(); strDate.add(strDate.DATE, count); SimpleDateFormat sdf = new SimpleDateFormat("MM-dd"); return sdf.format(strDate.getTime()); } 如要获取明天是几月几号,则 returnDate(1); 获取下 ...
代码如下: String cmd = "reg add HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\Run /v your_exe_name /t REG_SZ /d your_path\\your_exe /f"; Runtime.getRuntime().exec(cmd);
我在一个activity中弹出一另一个activity->B窗口,通过弹出窗口的值来判断主页显示内容. 弹出窗口用下面的方式: startActivityForResult(intent, REQUEST_QUERYDATE); 取返回值: protected void onActivityResult(int requestCode, int resultCode, Intent data) 可我在onActivityResult中用data.getCharSequenceExtra("参数").toString().得到的总是NULL值 最后用dat ...
今天更新eclipse android adt插件完后,发现android工程都发不起来了,报 ERROR: Unknown option '--no-crunch' 在网上查看发现是没有更新SDK,索性把SDK也更新到4.0,完事就OK了
初学android,做一个天气预报的实现 天气预报的实现主要是通过google提供的接口,解析XML,显示 接口有两种途径: 1.http://www.google.com/ig/api?hl=zh-cn&weather=,,, + 城市CODE,如上海的是31399999,121470001 则天气预报接口为: http://www.google.com/ig/api?hl=zh-cn&weather=,,,31399999,121470001 2.http://www.google.com/ig/api?hl=zh_cn&weather= + 城市名称,如要显示 ...
弹出窗口怎样防IE阻截,最好的办法就是用FORM表单提交,不用window.open或window.showmodedialog <from action="" name="form" target="_blank"></form>
当一个action需要返回到另一个action中时,且有参数需要带过去时在xml里进行如下配置: <result name="XX" type="redirect"> /xx/xxAction_searchXX.action?kpid=${#request.kpid}&amp;type=2&amp;importType=${#request.importType} </result>
示例代码如下: DECLARE @t TABLE(Groups char(2),Item varchar(10),Color varchar(10),Quantity int) INSERT @t SELECT 'aa','Table','Blue', 124 UNION ALL SELECT 'bb','Table','Red', -23 UNION ALL SELECT 'bb','Cup' ,'Green',-23 UNION ALL SELECT 'aa','Chair','Blue', 101 UNION ALL SELECT 'aa','Chair','Red', ...
Global site tag (gtag.js) - Google Analytics