`
a881127b
  • 浏览: 64497 次
  • 性别: Icon_minigender_1
  • 来自: 武汉
社区版块
存档分类
最新评论
文章列表
JAVA中去掉空格 1. String.trim() trim()是去掉首尾空格 2.str.replace(" ", ""); 去掉所有空格,包括首尾、中间 String str = " hell o "; String str2 = str.replaceAll(" ", ""); System.out.println(str2); 3.或者replaceAll(" +",""); 去掉所有空格 4.str = ...
MyEclipse 导入项目时出现如下错误,检查过,包的导入都正常 Error!]the type java.lang.object cannot be resolved. it is indirectly referenced from required .class files 找了半天,才发现,原来是jdk的问题,原来是没有导入jdk的包。 也有可能是这个原因:电脑上有多个jdk的版本,这样MyEclipse导入的时候就会出现问题,一般情况下,使用MyEclipse自己带的Jdk版本,我装的是jdk 1.6.013 ,即使重新导入这个也不管用,后面只好用Myeclipse自己带的 ...
查询数据库中的存储过程和函数 方法一: select `name` from mysql.proc where db = 'your_db_name' and `type` = 'PROCEDURE' //存储过程 select `name` from mysql.proc where db = 'your_db_name' and `type` = 'FUNCTION' //函数 方法二:   show procedure status; //存储过程 show function status; // ...
1、MySQL 获取表名: 用“show tables”命令。在程序中也可以采用该命令获取,在返回的RowSet中的“Tables_in_db”读出来。其中“db”是指你的数据库的名称,比如说Tables_in_productdb。 获取某个表的字段:        用“desc tablename”命令。取得方式和上面类似。              此外,还可用MySQL数据库系统表取得,在information_schema库中有系统中的一些基础性表,比如说TABLES\COLUMNS。但一般情况下,程序只访问本库中的表,所以不建议采用这种方式取得。 2、SQLSERVER ...
一:创建数据库: create database InterViewTest1 use InterViewTeat1; create table Category ( id int(10) auto_increment, name varchar(50), code varchar(50), parentCode varchar(50), serNum int,--排序号 primary key(id) )ENGINE=INNODB DEFAULT CHARSET=gbk;    关于示例数据请看附件的sql文件 二:核心算 ...
本文是struts2+jquery-ajax实现的在mySQL下的高效分页 1:先看下预览效果:(30多万数据测试)   2:这个实现首先把后台数据库返回的RowSet转化成json格式的字符串,再把这个json格式的字符串传给前台,用jquery解析   RowSet数据到json格式的数据转化函数如下:   /* * @param count 数据总条目数 * @param pageCount 每页显示数据数 * */ private static String RowSetToJson(RowSet rt,int count,int ...
Java,Javac参数说明 java.exe  用法:用法: java [-选项] 类 [参数...]            (执行一个类)    或者 java [-选项] -jar jar文件 [参数...]            (执行一个jar文件) 其中,可能的选项包括:     -client       选择 "client" VM(ginger547:应该是指Virtual Machine)     -server     选择 "server" VM     -hotspot      与 "client&q ...
Global site tag (gtag.js) - Google Analytics