散人漫步
eclipse

2009年5月25日

sql 通配符必知

Tips for Using Wildcards

As you can see, SQL's wildcards are extremely powerful. But that power comes with a price: Wildcard searches typically take far longer to process than any other search types discussed previously. Here are some tips to keep in mind when using wildcards:

  • Don't overuse wildcards. If another search operator will do, use it instead.

  • When you do use wildcards, try to not use them at the beginning of the search pattern unless absolutely necessary. Search patterns that begin with wildcards are the slowest to process.

  • Pay careful attention to the placement of the wildcard symbols. If they are misplaced, you might not return the data you intended.

Having said that, wildcards are an important and useful search tool, and one that you will use frequently.

 

 

使用通配符的建议

如你所料,SQL的通配符是非常强大的。但是这种强大是建立在:比其他类型的搜索浪费更多的处理器占用上的。
在这里有一些使用通配符的建议希望大家能记住:
·尽量用其它的搜索操作,代替通配符;
·除非必须,请不要将通配符搜索放在搜索模式的最前面,将它放大最前面会使处理变得非常慢;
·小心通配符的位置,如果你放错位置的话将不会得到返回数据。
再重申一次,通配符是一个重要并有用的搜索工具,你将会非常频繁的使用它。

posted @ 2009-05-25 17:49 washington 阅读(229) | 评论 (0) | 编辑 收藏
 

2008年1月9日

转义字符序列\u
\u UNICODE的转义字符序列。可用在字符常量和字符变量引号之外。

public static main (String\u005B\u005D args);

转义序列         名字           UNICODE值
\b               backspace      \u0008
\t               tabs           \u0009
\n               changeline     \u000a
\r               enter          \u000d
\"               "              \u0022
\'               '              \u0027
\\               \              \u005c

使用strictfp关键字标记的方法,必须使用严格的浮点计算。

严格浮点计算:有些处理器使用80位寄存器以增加中间过程的计算精度 double w = x * y / z;


posted @ 2008-01-09 14:41 washington 阅读(1332) | 评论 (0) | 编辑 收藏
 
JAVA语言规范
JAVA语言规范 http://java.sun.com/docs/books/jls
JAVA虚拟机规范 http://java.sun.com/docs/books/vmspec

JAVA中的数据类型
datatype    lenghter

int           4bytes
long          8bytes
short         2bytes
byte          1byte

char          2bytes

float         4bytes
double        8bytes

boolean       1bit



posted @ 2008-01-09 14:12 washington 阅读(318) | 评论 (0) | 编辑 收藏
 

2008年1月8日

java类原型

声明类
[<modifiers>] class <class_name>{
      [<attribute_declarations>]
      [<constructor_declarations>]
      [<method_declarations>]
}
[...]为可选部分.


声明方法
[<modifiers>]<return_type><name>([<argu_list>]){
        [<statements>];
}

 

构造方法
[<modifiers>]<class_name>([<argu_list>]){
         [<statements>];
}


posted @ 2008-01-08 17:35 washington 阅读(219) | 评论 (0) | 编辑 收藏
 

2007年12月11日

感叹
有人告诉我说现在JAVA很老了...可是十多年了.他跟我说什么ROR.说是未来的方向.呵呵,感觉就是那个样.你方唱罢我登场....总之我还是继续JAVA.
posted @ 2007-12-11 15:46 washington 阅读(160) | 评论 (0) | 编辑 收藏
 

2007年10月5日

第一帖!!!~~~
俺来到BLOGJAVA了~~~~激动中~~~~

大大们,罩着我呀,呵呵。
posted @ 2007-10-05 11:13 washington 阅读(218) | 评论 (2) | 编辑 收藏
 
仅列出标题  
 
<2025年5月>
日一二三四五六
27282930123
45678910
11121314151617
18192021222324
25262728293031
1234567

 导航

  • BlogJava
  • 首页
  • 发新随笔
  • 发新文章
  • 联系
  • 聚合
  • 管理

 统计

  • 随笔: 6
  • 文章: 1
  • 评论: 2
  • 引用: 0

常用链接

  • 我的随笔
  • 我的评论
  • 我的参与
  • 最新评论

留言簿(2)

  • 给我留言
  • 查看公开留言
  • 查看私人留言

随笔档案

  • 2009年5月 (1)
  • 2008年1月 (3)
  • 2007年12月 (1)
  • 2007年10月 (1)

搜索

  •  

最新评论

  • 1. re: 第一帖!!!~~~
  • 谢谢,刚下载完TINKING IN JAVA 4(EN)

    呵呵,有空的话抄几段上来一起研究研究。
  • --washington
  • 2. re: 第一帖!!!~~~
  • 恭喜,以后常来
  • --千里冰封

阅读排行榜

  • 1. 转义字符序列\u(1332)
  • 2. JAVA语言规范(318)
  • 3. sql 通配符必知(229)
  • 4. java类原型(219)
  • 5. 第一帖!!!~~~(218)

评论排行榜

  • 1. 第一帖!!!~~~(2)
  • 2. sql 通配符必知(0)
  • 3. 转义字符序列\u(0)
  • 4. JAVA语言规范(0)
  • 5. java类原型(0)

Powered by: 博客园
模板提供:沪江博客
Copyright ©2025 washington