`
sllizhimei
  • 浏览: 163383 次
  • 性别: Icon_minigender_2
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
关于JavaScript中apply与call的用法意义及区别 JavaScript中有一个call和apply方法,其作用基本相同,但也有略微的区别。 先来看看JS手册中对call的解释: ---------------------------------------------------------------- call 方法 调用一个对象的一个 ...
spring的事务管理配置如下: ..... <!-- 事务管理 --> <bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager"> <property name="sessionFactory"> <ref bean="sessionFactory" /> </property> < ...
在Linux中执行.sh脚本,报异常/bin/sh^M: bad interpreter: No such file or directory。 分析:这是不同系统编码格式引起的:在windows系统中编辑的.sh文件可能有不可见字符,所以在Linux系统下执行会报以上异常信息。 修改文件的编码格式: 首先要确保文件有可执行权限 #sh>chmod a+x filename 然后修改文件格式 #sh>vi filename 利用如下命令查看文件格式 :set ff 或 :set fileformat 可以看到如下信息 fileformat=dos 或 fil ...
1、linux下mysql安装完后是默认:区分表名的大小写,不区分列名的大小写; 2、用root帐号登录后,在/etc/my.cnf 中的[mysqld]后添加添加lower_case_table_names=1,重启MYSQL服务,这时已设置成功:不区分表名的大小写; lower_case_table_names参数详解: lower_case_table_names = 0 其中 0:区分大小写,1:不区分大小写 MySQL在Linux下数据库名、表名、列名、别名大小写规则是这样的:    1、数据库名与表名是严格区分大小写的;    2、表的别名是严格区分大小写 ...
获得当前时间  select   current_time;   获得当前日期 select   current_date;   Select   CurDate();   Select   CurTime();   Select   Now();     我们都知道在sqlserver中可以很容易指定日期类型字段的默认值为当前服务器操作系统的 ...
在linux的top命令里的cpu信息是什么意思呢? Cpu(s): 62.1% us, 15.9% sy,0.1% ni, 19.4% id,2.0% wa,0.1% hi,0.4% si Mem:  8247956k total,8232004k used,15952k free,205240k buffers Swap: 8191992k total,48k used,8191944k free,7156092k cached   top命令是Linux下常用的性能分析工具,能够实时显示系统中各个进程的资源占用状况,类似于Windows的任务管理器。下面详细介绍它的使用方法。 to ...
在Oracle中,经常会被到底用EXISTS还是用IN而困惑,下面简单说明 “exists”和“in”的区别 先看两个例子: 1) select * from T1 where exists(select 1 from T2 where T1.a=T2.a) ;     T1数据量小而T2数据量非常大时,T1<<T2 时,1) 的查询效率高。 2) select * from T1 where T1.a in (select T2.a from T2) ;      T1数据量非常大而T2数据量小时,T1>>T2 时,2) 的查询效率高。 exists 用法: ...
CREATE TABLE `tmp` (     `id` int(11) DEFAULT NULL,     `txt` varchar(20) DEFAULT NULL  ) ;     insert into tmp values(22,null);     -- 用 case when 实现   select case when txt is null then  '' else txt end from tmp ;     -- 用 ifnull 实现   select ifnull(txt,'ab') from tmp;  详情如下: IFNULL(expr ...
举例说明: 在MySQL数据库中建立两张数据表,并分别插入一些数据。 示例脚本如下: drop table table1;   CREATE TABLE table1 (name VARCHAR(32) NOT NULL, city VARCHAR(32) NOT NULL); insert into TABLE1(name, city) values ('Person A', 'BJ');   insert into TABLE1( ...
 目前,Oracle 10g XE的缺省字符集不是中文字符集,并且不能通过直接运行 alter database character set ZHS16GBK ; 来修改,因为ZHS16GBK不是缺省字符集的超集。过去流传很广的直接修改sys用户下的PROPS$表的方法,也会给字符集的变更留下很多潜在的问题.   不过在安装完Oracle XE后,可以在sqlplus(即Oracle XE的run SQL command line)中, 进行如下的操作来修改字符集:   connect system/system as sysdba (输入system用户名跟密码)   shutdown i ...
首次启动Eclipse时, 会弹出"Workspace Launcher"对话框, 提示设置Workspace路径. 设定好路径后, 倘若勾选了"Use this as the default and do not ask again", 那么以后再启动时就不会有提示, 直接进入默认工作空间. 下面的方法可以更改workspace的路径设置. 1. 启动Eclipse后, 打开"Window -> Preferences -> General -> Workspace", 点Workspace页上的"St ...
转自http://www.blogjava.net/hardson/archive/2006/10/11/58476.html 注:没有考虑负数、小数 //用JAVA自带的函数 public static boolean isNumeric(String str){   for (int i = str.length();--i>=0;){      if (!Character.isDigit(str.charAt(i))){     return false;    }   }   return true; } //用正则表达式   public static boolea ...
一. 创建表并插入数据 SQL> create table tb_do_only(   2  id number primary key,   3  name varchar2(10)   4  ); Table created. SQL> commit; Commit complete. SQL> insert into tb_do_only values(1001, 'tom'); 1 row created. SQL> insert into tb_do_only values(1002, 'tony'); 1 row created. SQL&g ...
在Oracle是提供了next_day求指定日期的下一个日期. 语法 : next_day( date, weekday ) date is used to find the next weekday. weekday is a day of the week (ie: SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY) 可用于: Oracle 9i, Oracle 10g, Oracle 11g For example: next_day('01-Aug-03', 'TUESDAY') would re ...
9I管理的数据字典ALL视图。 783. ALL_ALL_TABLES    用户可存取的所有表. 784. ALL_ARGUMENTS    用户可存取的对象的所有参数. 785. ALL_ASSOCIATIONS    用户定义的统计信息. 786. ALL_BASE_TABLE_MVIEWS    用户可存取的所有物化视图信息. 787. ALL_CATALOG    用户可存取的全部表,同义词,视土和序列. 788. ALL_CLUSTER_HASH_EXPRESSIONS    用户可存取的聚集的HASH函数. 789. ALL_CLUSTERS    ...
Global site tag (gtag.js) - Google Analytics