易截截图软件、单文件、免安装、纯绿色、仅160KB

mysql与Oracle update的区别

update :单表的更新不用说了,两者一样,主要说说多表的更新
   
       Oracle> Oracle的多表更新要求比较严格,所以有的时候不是很好写,我们可以试试Oracle的游标
                    (游标参考:http://blog.csdn.net/lovelyhermione/archive/2009/08/18/4457500.aspx)
          update (
                   select t.charger_id_ new_charger_id_
                   from t_cus_year_status t
                   left join t_customer_infos cus on cus.id_ = t.cus_id_
                   where....
        ) n  set  n.new_charger_id_ =6;
   
     mysql>
                   update t_cus_year_status t
                     left join t_customer_infos cus on cus.id_ = t.cus_id_
                   set t.charger_id_  =6
                   where......;


相关文档:

MySQL转义

MySQL识别下列转义字符:    
   
  \0    
  一个ASCII   0   (NUL)字符。    
  \n    
  一个新行符。    
  \t   &nb ......

[转]mysql中data_format()

DATE_FORMAT(date,format)
根据format字符串格式化date值。下列修饰符可以被用在format字符串中: %M 月名字(January……December)
%W 星期名字(Sunday……Saturday)
%D 有英语前缀的月份的日期(1st, 2nd, 3rd, 等等。)
%Y 年, 数字, 4 位
%y 年, 数字, 2 位
%a 缩写的星期名字(Sun&h ......

MySQL 导入导出命令

      最近别人在给我 sql 文件时简单的提了下 导入/导出 命令,在此基础上学习了下,总结到 myhere。
    规定:
用户名:db_user
帐号: db_pass
数据库: db_name
表: table_name_1, table_name_2
    说明:  一些操作需要有适当的权限。
1. ......

通过分区(Partition)提升MySQL性能

今天这么激动又想写文章的原因是MySQL5.1的发布带来了设计超强动力数据库的强有力的武器,任何MySQL的DBA都应该尽快学习并使用它。我觉得如果­能很好滴使用这个5.1版带来的新特性,DBA可以使自己管理的VLDB(不知道什么是VLDB?告诉你,是好大好大的数据库的意思,Very Large DB)或数据仓库奇迹般的获得巨大的性能提升 ......

如何提高Mysql语句插入性能

在表中已有大量的index的情况下插入大量数据,可以采用先将索引删除,然后再插入数据,然后再重新建立索引。之所以这样会快是因为???
7.2.14 Speed of INSERT Statements
The time to insert a record is determined by the following factors, where the numbers indicate approximate proportions:
  & ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号