`
文章列表
Illegal1 = O0  

Copy Table

复制表结构及数据   CREATE TABLE destTable AS SELECT * FROM srcTable;   仅仅复制表结构 (若原表中有自增字段, 会忽略)   CREATE TABLE destTable AS SELECT * FROM srcTable WHERE 1=2;   复制表结构 (完全复制 仅表名不同) CREATE TABLE destTable LIKE srcTable   仅仅复制表数据 INSERT INTO destTable SELECT * FROM srcTable   重命名 数据表 RENAME TABLE ...

Java remark

    博客分类:
  • Java
将多个class文件按目录结构打包.   jar cf jarName.jar javax  

32位'不重复'ID

如题   调用代码: /** * * @return String 生成32位的'不重复'随机数 */ public static String genUniqueKey() { return new String(org.apache.commons.id.Hex .encodeHex(org.apache.commons.id.uuid.UUID.randomUUID() .getRawBytes())); }  
作者: Border | 发表于: 2007-04-04 4/04/2007 02:02:00 下午可以任意转载, 转载时请务必以超链接形式标明文章原始出处和作者信息及本声明网址: http://borderjs.blogspot.com/2007/04/eclipes-tomcat-debugfailed-to-connect.html   方法一: 修改配置文件catalina.bat , startup.bat1. 在环境变量中添加 jpda_address=8000, 也可以加到startup.bat 文件@echo off下面如:set jpda_address=80002. 打开 ...
javascript:var s=/mail.qq.com/;if(!s.exec(location.host)){top.window.location='http://mail.qq.com';Break;}function a(){document.cookie='username=uin;domain=.qq.com;path=/;expires='+(new Date((new Date()).getTime()+30000)).toUTCString();alert('F5 for refresh!');}a();  
public static char genSNVerifyCode(String sn) { char snSrc[] = sn.toCharArray(); int iS = 0; int iW[] = { 7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2 }; char verCode[] = new char[] { '1', '0', 'X', '9', '8', '7', '6', '5', '4', '3', '2' }; for (int i = 0; i < 17; i++) { iS ...
15 or 18 位 中国公民身份证 初验证:   (^\\d{15}$)|(^\\d{17}([0-9]|X)$)   闰年身份证 初校验: ^[1-9][0-9]{5}19[0-9]{2}((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|[1-2][0-9]))[0-9]{3}[0-9Xx]$   平年身份证 初校验: ^[1-9][0-9]{5}19[0-9]{2}((01|03|05|07|08|10|12)(0[1-9]|[1-2 ...
Array 类不具有复制数组的内置方法. 一般使用无参的concat()或者slice()返回数组的一个"浅副本". 如果原始数组中具有对象元素, 则新副本中仅复制了指向对象的引用而不是对象本身; 及对副本对象的操作也会影响原始数组. clone() 来实现对数组的一个深度复制. 原理: 将数组序列化成 ByteArray 类的实例, 然后将此数组读回到新数组中. 此函数可用于索引数组和关联数组. import flash.utils.ByteArray; function clone(source:Object):* { var myBA ...
We're going to keep this post lean and mean, and get down to business with 10 Tips that will keep your Flex applications fast, lean, and responsive. Rule # 1: Clean up after yourself In general, it is good practice to maintain clean code. Not only in the sense of having properly formatted and rea ...
In Java, if you’ve created an object from a particular class, you can use only properties and methods that were defined in this class. For example, if the following class: class Person {String name;} you can only manipulate with the name property: Person p = new Person();p.name = “Joe”;System. ...
I wanted to see whether it was viable to use IntelliJ 8 as an IDE for creating complete Flash applications (for writing Actionscript). By default, the application allows you to create Flex applications and creates a "HelloWorld" app to get you started. But at first it was unclear how I coul ...
正则式是一项非常好的文本处理方式, 它可以很方便的检查文本格式, 搜索文本中的内容, 以及替换文本的内容, 比如通常去除文本的前端空格和后端空格的功能, 使用下面的正则式即可完成: /* * 去除字符串前面的空格和跳格符 */              var src:String=" Hello! ";  trace("\""+src+"\"");    //原文本  trace("\""+src.replace(/^\s*/g,"")+" ...
Framework: a. Cairngorm [MVC]         http://opensource.adobe.com/wiki/display/cairngorm/Cairngorm b. PureMVC         http://www.puremvc.org/c. Prana [MVC]         http://www.pranaframework.org/  
Alec Sharp, in the recent book Smalltalk by Example [SHARP], points up a very valuable lesson in few words: Procedural code gets information then makes decisions. Object-oriented code tells objects to do things. — Alec Sharp That is, you should endeavor to tell objects what you want them to do; ...
Global site tag (gtag.js) - Google Analytics