ZigZag ConversionThe string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern i...
分类:
其他好文 时间:
2014-11-16 00:34:06
阅读次数:
268
描述szhhck have an old calculator bought 5 years ago.he find the old machine can just calculate expressions like this :A-B、A+B、A*B、A/B、A%B.because it is...
分类:
其他好文 时间:
2014-11-15 21:29:55
阅读次数:
236
The string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font fo...
分类:
其他好文 时间:
2014-11-15 16:48:09
阅读次数:
188
遇到这种情况select*from user where info like %?%;虽然这是sql的写法,但是在jdbc 中需要改成 select*from user where info like ?;如ps.setString(“%”+value+“%”);
分类:
数据库 时间:
2014-11-15 10:05:29
阅读次数:
230
需要查询OneTable中的Message栏位中的值是否包含在TwoTable的Message栏位中:selecta.Message,b.MessagefromOnea,Towbwhereinstr(a.Message,b.Message)>0;(b.Message包含在a.Message中)instr(title,‘Oracle’)>0相当于likeinstr(title,‘Oracle’)=0相当于notlike
分类:
数据库 时间:
2014-11-14 18:05:33
阅读次数:
178
mysql的服务器变量MySQL服务器维护了两大类变量,一个是服务器变量,另一个是状态变量。其中:服务器变量:定义MySQL服务器运行特性1、mysql服务器变量根据作用域可以分为全局变量和会话变量:全局变量:#SHOWGLOBALVARIABLES[LIKE‘STRING‘];#使用该命令可以显示某个服务所有的..
分类:
数据库 时间:
2014-11-14 09:21:50
阅读次数:
181
Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephon...
分类:
其他好文 时间:
2014-11-13 23:52:11
阅读次数:
363
假如有这样1个查询请求,模糊查询标题中包含a%b_cc’d的记录,正确的sql应该是下面这样的: select * from t_sch_work_info t where t.title like ‘%a/%b/_cc”d%’ ESCAPE ‘/’;Spring 并没有提供相应的工具类,...
分类:
数据库 时间:
2014-11-13 23:46:50
阅读次数:
321
Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephon...
分类:
其他好文 时间:
2014-11-13 14:12:55
阅读次数:
176
有时候表的字段太多,只是大致记得表的注释,想通过字段注释查找字段名称,可以用如下语句:
SELECT COLUMN_NAME,column_comment FROM INFORMATION_SCHEMA.Columns WHERE table_name='tj_record' AND table_schema='tianjin_20140811' AND column_comment LIKE ...
分类:
数据库 时间:
2014-11-13 10:53:52
阅读次数:
225