2013年11月12日
摘要:
Compile++ thumb : cocos2dx_static <=CCCommon.cppjni/../../../cocos2dx/platform/CCCommon.cpp:Infunction'void cocos2d::CCLog(char const*, ...)':jni/../../../cocos2dx/platform/CCCommon.cpp:177:69: error: format not a string literal andno format arguments [-Werror=format-security]cc1plus.exe:
阅读全文
posted @ 2013-11-12 11:28
zbl3033
阅读(510)
推荐(0)
2013年11月1日
摘要:
一、DeleteDELETEFROM`table`;二、TruncateTRUNCATE`table`;第一种方法其实就是去掉where条件,没有了条件,也就是删除掉表里面的所有记录了;第二种方法像是重置表,把表中内容全部清除,回到刚建好表的状态,你的自增ID也将会重新从1开始自增;效率要比DELE...
阅读全文
posted @ 2013-11-01 16:02
zbl3033
阅读(799)
推荐(0)
摘要:
ERROR 1701 (42000): Cannot truncate a table referenced in a foreign key constraint (`furion`.`tbl_frn_alert`, CONSTRAINT `FK353A3CBEB139CC08` FOREIGN ...
阅读全文
posted @ 2013-11-01 15:55
zbl3033
阅读(341)
推荐(0)
2013年9月25日
摘要:
用外连接: SELECT * from PERempms left outer join PERPROMSon PERPROMS.BRANCH =PERempms.BRANCH left outer join PEREDUMSon PEREDUMS.Education_CODE =PERempms....
阅读全文
posted @ 2013-09-25 16:55
zbl3033
阅读(618)
推荐(0)
2013年9月17日
摘要:
public Boolean exists(String sql) { try { stm = conn.createStatement( java.sql.ResultSet.TYPE_SCROLL_INSENSITIVE, java.sql.ResultSet.CONCUR_READ_ONLY); rs = stm.executeQuery(sql); rs.last(); int intRows=rs.getRow(); if (intRows == 0){ return false; }el...
阅读全文
posted @ 2013-09-17 16:14
zbl3033
阅读(301)
推荐(0)
摘要:
在用纯JSP做一个页面报警功能的时候习惯性的用executeQuery来执行SQL语句,结果执行update时就遇到问题,语句能执行,但返回结果出现问题,另外还忽略了executeUpdate的返回值不是结果集ResultSet,而是数值!特收藏如下一篇文章(感谢网友们对各种信息的贡献):JDBCTM中Statement接口提供的execute、executeQuery和executeUpdate之间的区别Statement 接口提供了三种执行 SQL 语句的方法:executeQuery、executeUpdate 和 execute。使用哪一个方法由 SQL 语句所产生的内容决定。方法ex
阅读全文
posted @ 2013-09-17 16:12
zbl3033
阅读(188)
推荐(0)
2013年8月30日
摘要:
前面几篇写了一下mvc的整体使用方法,今天写一下controller中refs的试用,refs的作用类似于我们告诉controller我们的一个元素的别名,既alias,那么controller就会为他声明get方法,具体如下:1、上一篇中运行结果如下: 这次我们想要得到这个uselist,一个方法是我们可以给userlist定义一个id,通过Ext.getCmp(id)得到,另一种既是使用refs,如下,我们把controller中添加如下属性:controller-refs 1 refs : [{ 2 ref : 'userList', 3 se...
阅读全文
posted @ 2013-08-30 16:48
zbl3033
阅读(294)
推荐(0)
2013年8月16日
摘要:
MyEclipse 10优化速度方案仍然主要有这么几个方面:去除无需加载的模块、取消冗余的配置、去除不必要的检查、关闭更新。第一步:去除不需要加载的模块一个系统20%的功能往往能够满足80%的需求,MyEclipse也不例外,我们在大多数时候只需要20%的系统功能,所以可以将一些不使用的模块禁止加载启动。通过Windows - Preferences打开配置窗口,依次选择左侧的General --> Startup and Shutdown,这个时候在右侧就显示出了Eclipse启动时加载的模块,可以根据自己的实际情况去除一些模块。windows-->perferences--&g
阅读全文
posted @ 2013-08-16 11:49
zbl3033
阅读(240)
推荐(0)
摘要:
删除当前工作目录下的WORKSPACE_HOME/.metadata/.plugins/org.eclipse.core.resources/.project,然后重新启动Eclipse
阅读全文
posted @ 2013-08-16 11:47
zbl3033
阅读(217)
推荐(0)
2013年8月8日
摘要:
第一步.MyEclipse10 Tomcat7 JDK1.7下载MyEclipse10http://downloads.myeclipseide.com/downloads/products/eworkbench/indigo/installers/myeclipse-10.0-offline-installer-windows.exeTomcathttp://tomcat.apache.org/Java SE Development Kit 7WINDOWS版http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downlo
阅读全文
posted @ 2013-08-08 15:46
zbl3033
阅读(517)
推荐(0)