abs(X)abs(X)返回 X 的绝对值。Abs(X) returns NULL if X is NULL.Abs(X) return 0.0 if X is a string or blob that cannot be converted to a numeric value. If X is...
分类:
数据库 时间:
2015-04-01 15:02:09
阅读次数:
160
from:http://www.cnblogs.com/litian/p/3870975.html1.JSON序列化string JsonStr= JsonConvert.SerializeObject(Entity);eg:A a=new A(); a.Name="Elain00"; a.H...
分类:
Web程序 时间:
2015-04-01 15:02:06
阅读次数:
146
1 import java.util.*; 2 3 public class Test { 4 public static void main(String[] args) { 5 Collection c = new HashSet(); 6 c.add...
分类:
其他好文 时间:
2015-04-01 15:01:55
阅读次数:
175
平时在在MSSql中查询数据的时候,想查找,某个字段在数据库中是否存在,并且查询出在哪个表中,哪个字段下面,在不知道的情况下,操作起来会很麻烦,然后就尝试些了一个sql语句,使用起来感觉挺方便的。当然了,也可以做成存储过程,来使用。--一般查询DECLARE @string VARCHAR(max)...
分类:
数据库 时间:
2015-04-01 14:48:17
阅读次数:
183
1.实现Comparable接口(如果List<Object>中Object实现了Comparator接口,便可以直接用以下Collections.sort的方式对List进行排序)publicclassTest{publicstaticvoidmain(String[]args){List<User>userList=newArrayList<User>();userList.add(newUser(3,"3"))..
分类:
其他好文 时间:
2015-04-01 13:30:13
阅读次数:
120
题目:
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
For example,
"A
man, a plan, a canal: Panama" is a palindrome.
"race
a c...
分类:
其他好文 时间:
2015-04-01 13:28:54
阅读次数:
112
开门人和关门人
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 11717 Accepted Submission(s): 5949
Problem Description
每天第一个到机房的人要把门打开,最后一个离...
分类:
其他好文 时间:
2015-04-01 13:21:38
阅读次数:
117
1、ostringstream:ostringstream 对象用来进行格式化的输出,可以方便的将各种类型转换为string类型。ostringstream 只支持 <> 操作符。
3、stringstream: string...
分类:
编程语言 时间:
2015-04-01 13:17:45
阅读次数:
158
关于IEnumerable和IQueryable的区别,这事还要从泛型委托Func说起。来看一个简单的泛型委托例子: class Program { static void Main(string[] args) { Func f = i => i > 5; Console.WriteLine(f(...
分类:
编程语言 时间:
2015-04-01 13:11:15
阅读次数:
253
今天看到一个很有意思的情况,如果希望用toString方法返回对象的地址的时候,可能会考虑使用this关键字,但是这个时候会出现一个问题,编译器看到string对象后面跟着一个“+”而后面不是String对象,编译器试图将this转换为string对象,,通过调用this的toString方法,于是...
分类:
编程语言 时间:
2015-04-01 13:10:54
阅读次数:
156