1:update 时做检查使用update mw_contract set payTimes=(case when payTimes>0 then payTimes-1else payTimes end)where contractNo='2015001';2:select时使用select cas...
分类:
数据库 时间:
2015-01-21 19:32:11
阅读次数:
146
1,js是一门解释型语言,无需编译,编写js要知道当前对象有什么成员,未必所有成员都能点出来。2,js大小写敏感,严格区分大小写。3,弱类型语言,声明用var,字符串推荐使用单引号。4,==要先转型,后比较值。===叫做严格判断,判断类型和值;(switch case是严格判断)5,js中没有局部作...
分类:
Web程序 时间:
2015-01-20 23:41:35
阅读次数:
234
/* A null pointer constant. */
#if defined (_STDDEF_H) || defined (__need_NULL)
#undef NULL /* in case has defined it. */
#define NULL ((void *)0)
#endif /* NULL not defined and or need NUL...
分类:
其他好文 时间:
2015-01-20 20:31:22
阅读次数:
179
DescriptionYou are given a number of case-sensitive strings of alphabetic characters, find the largest string X, such that either X, or its inverse ca...
分类:
其他好文 时间:
2015-01-20 20:27:10
阅读次数:
191
觉得很有必要把基础的东西写下来备忘。语句块定义:Sql代码decalre
--变量声明
var1number(2);--仅声明
var2char(2):=‘11‘;--在声明的同时初始化
begin
--语句
end;--语句块结束if语句Sql代码
ifa=1orb=2then
elsifc=3then
else
endif;case语句case语句如果作为分支控制语句,..
分类:
其他好文 时间:
2015-01-20 18:25:47
阅读次数:
113
上传文件#定位上传按钮,添加本地文件driver.find_element_by_name("file").send_keys('D:\\selenium_use_case\upload_file.txt' )time.sleep(2)定位下拉框#先定位到下拉框m=driver.find_eleme...
分类:
Web程序 时间:
2015-01-20 17:52:31
阅读次数:
234
在阅读hadoop相关的脚本文件时,遇到case语句,好久不写shell,忘了不少,复习下shell的case语句: 运行结果: case的语法: Hado...
分类:
系统相关 时间:
2015-01-20 17:39:34
阅读次数:
145
标题:Length of Last Word通过率:28.8%难度:简单Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last wor...
分类:
其他好文 时间:
2015-01-20 17:01:33
阅读次数:
117
给定区间[-231, 231]内的3个整数A、B和C,请判断A+B是否大于C。 输入格式: 输入第1行给出正整数T(C,否则输出“Case #X: false”,其中X是测试用例的编号(从1开始)。输入样例:41 2 32 3 42147483647 0 21474836460 -214748364...
分类:
其他好文 时间:
2015-01-20 13:33:42
阅读次数:
454
Analysis:For target>A[mid]:There is only one case that we should seach [start,mid-1]: Peak is in the left, i.e., A[start]>A[mid] && target>=A[start].F...
分类:
其他好文 时间:
2015-01-20 07:49:37
阅读次数:
203