码迷,mamicode.com
首页 >  
搜索关键字:le ge lt gt eq ne    ( 256714个结果
sql 除法运算结果为小数时显示0的解决方案 或者百分比
SELECT field1/field2 FROM TB; 当 field1的数值 > field2的数值时,除法得出的结果是<1的,即0.xxxxxx 这个时候在DB2的环境下SELECT出来的值是0解決方法:先把field1转换成DOUBLE类型的,这样计算出来的就会得出小数点了,会显示出0.....
分类:数据库   时间:2014-06-29 15:37:32    阅读次数:448
c++生成随机数
#include#include#include#define random(x) (rand()%x)void main(){ srand((int)time(0)); for(int x=0;x<10;x++) printf("%d/n",random(100...
分类:编程语言   时间:2014-06-29 15:34:25    阅读次数:302
List<T> 求差集
List a = new List() { 1, 2, 3, 6, 8, 7 }; List b = new List() { 1, 2, 3, 4, 5, 6 }; List c = b.Except(a).ToList(); fo...
分类:其他好文   时间:2014-06-29 15:28:22    阅读次数:212
蓝桥准备
1.感受一下深搜代码 1 void Set_01(int k){ 2 if(k==MAXN){ 3 Print_ans(k); 4 return; 5 } 6 for(int i=0;i<2;i++){ 7 ans[k]=i; ...
分类:其他好文   时间:2014-06-29 15:12:54    阅读次数:197
LeetCode:Swap Nodes in Pairs
Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1->2->3->4, you should return the list as 2->1->4->3. Your ...
分类:其他好文   时间:2014-06-29 14:39:10    阅读次数:268
LeetCode Permutations II
class Solution { public: vector > permuteUnique(vector &num) { vector > result; if (num.size() path; dfs(n...
分类:其他好文   时间:2014-06-29 14:09:34    阅读次数:220
LeetCode Spiral Matrix II
class Solution { public: vector > generateMatrix(int n) { vector > matrix; if (n (n, 0)); }...
分类:其他好文   时间:2014-05-28 09:42:14    阅读次数:233
shell if判断(曾经被一个字符串相等的判断纠结半小时,最后只是if后少了个空格!) 和 awk引用外部变量判断
一、if判断数字: $A=12 $B=15 if(("$A"<"$B")) if(("$A"=="$B"))字符串: $A="HELLO" $B="WORLD" if [ "$A" = "FACT_LOGIN_USER" ] if [ "$A" = "$B" ]PS:字符串比较的时候...
分类:其他好文   时间:2014-05-28 09:32:44    阅读次数:347
[转]Oracle DB 查看预警日志
“Database(数据库)”主页>“Related Links相关链接)”区域> “Alert Log Content (预警日志内容)”查看预警日志每个数据库都有一个alert_.log文件。此文件位于数据库所在的服务器中,如果设置了$ORACLE_BASE,则此文件默认存储在$ORACLE_B...
分类:数据库   时间:2014-05-28 09:30:10    阅读次数:540
axis2 webservice在websphere上需要设置was共享库
由于websphere自带的JAR包与axis2包冲突,要解决这个冲突,必须设置共享库。在websphere控制台,找到环境>>>共享库,设置一个Cell类型的共享库,共享库名称为axis2,库包为:axis2-adb-1.5.6.jaraxis2-kernel-1.5.6.jaraxis2-tra...
分类:Web程序   时间:2014-05-28 09:07:00    阅读次数:455
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!