码迷,mamicode.com
首页 >  
搜索关键字:name    ( 94827个结果
POJ1850 Code 【排列组合】
还不算是难题(嘿嘿,因为我做出来了) 很简单,找到相应的方程式解就是了(中间也犯了一个很2的错误,把9+10+11+...+99写成(1+90)*90/2,改过来后就好了) 不多说,code is below #include #include #include using namespace std; int combi(int a,int b) { int sum=1; int...
分类:其他好文   时间:2014-06-27 10:45:32    阅读次数:193
获得sql server的table的表结构 -- 转到word中
SQL语句: select syscolumns.name,systypes.name,syscolumns.length from syscolumns  join sysobjects on syscolumns.id=sysobjects.id and sysobjects.xtype='U' join systypes on systypes.xtype=syscolumns.x...
分类:数据库   时间:2014-06-27 09:57:03    阅读次数:251
Java equals和toString用法
1、代码       User.java public class User{ String name; int age; public User(String name,int age){ this.name = name; this.age = age; } public boolean equals(Object obj){ if(this == ...
分类:编程语言   时间:2014-06-27 09:29:17    阅读次数:261
初学JavaScript之猜测new操作符的原理
JavaScript中构造函数与普通函数其实没有什么差别,构造函数可以当做普通函数来使用,普通函数也可以用new来模拟构造函数的调用,然而使普通函数与构造函数发生区别的其实就在于new操作符的内部原理,下面是我通过测试猜测的new操作符的执行过程,当你在用new操作符来生成一个对象时内部可能执行了以下几个步骤的操作: 以构造函数  function Person(name){ this.na...
分类:编程语言   时间:2014-06-27 08:28:27    阅读次数:209
struts2整合json要注意的问题
昨天struts2整合json,一直出错: There is no Action mapped for namespace / and action name ... HTTP Status 404 - There is no Action mapped for action name... 发现我已经在struts.xml中继承了json-default了啊,后来发现原来是因为没有引入相应...
分类:Web程序   时间:2014-06-27 07:44:37    阅读次数:266
java web进阶篇(三) 表达式语言
表达式语言(Expression Language ,EL)是jsp2.0中新增的功能。可以避免出现许多的Scriptlet代码 格式: ${ 属性名称 },  使用表达式语言可以方便的访问对象中的属性,提交的参数或者进行各种数学运算,而且使用表达式语言最大的特点是如果输出的内容是null,则会自动使用空字符串("")表示。 ${name} 表达式语言的主要功能就是进行内容的显示...
分类:编程语言   时间:2014-06-27 07:08:59    阅读次数:187
关于DBA_TAB_MODIFICATIONS数据字典中数据无法查询的问题
今天收到一个客户请求,客户在查数据字典时,发现下面的现象。SQL>selecttable_namefromdba_tab_modificationswheretable_name=‘STAT_TABLE‘;norowsselectedSQL>selecttable_namefromdba_tab_modificationswheretable_namelike‘%STAT_TABLE‘;TABLE_NAME-----------------..
分类:数据库   时间:2014-06-27 06:57:16    阅读次数:319
mysql 索引 使用注意细节
在查询时,如果使用到LIKE关键字,就要注意有没有使用到索引;没有使用索引前:mysql>explainselect*fromemployeeswherefirst_name=‘Georgi‘\G;***************************1.row***************************id:1select_type:SIMPLEtable:employeestype:ALLpossible_keys:NU..
分类:数据库   时间:2014-06-27 06:10:07    阅读次数:272
oracle 连接不上ORA-12162: TNS:net service name is incorrectly specified的另外一种可能原因
用sqlplus连接oracle数据库时报错:[root@ownsv~]#sqlplusoracle/password@//10.5.0.7:1521/sspSQL*Plus:Release11.1.0.7.0-ProductiononThuJun2610:16:212014Copyright(c)1982,2008,Oracle.Allrightsreserved.ERROR:ORA-12528:TNS:listener:allappropriateinstancesareblockin..
分类:数据库   时间:2014-06-27 06:06:53    阅读次数:392
Redhat5 安装oracle10g 启动测试
安装环境:redhat5.5VirtualBox4.3.12oracle10g在虚拟机环境下,直接安装的是带图形界面redhat5.5-server,便于后来方面安装oracle一安装部分1.安装前的包检查采用iso光盘挂载作为yum源安装[rhel-server] name=localserver baseurl=file:///mnt/cdrom/Server//挂载光盘文件为yu..
分类:数据库   时间:2014-06-27 06:01:02    阅读次数:516
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!