码迷,mamicode.com
首页 >  
搜索关键字:flashback query    ( 12696个结果
mysql生成随机时间
mysql> update test set create_time=concat('2013-10-01 ', floor(10+rand()*10),':',floor(10+rand()*49),':',floor(10+rand()*49)) where create_time='0000-00-00 00:00:00'; Query OK, 1 row affected Rows ma...
分类:数据库   时间:2014-07-08 13:01:03    阅读次数:227
CI框架的数据库操作函数
//举例查询(userid,name,sex为user表的数据库字段)publicfunctiontesta(){$this->load->database();$query=$this->db->query(‘SELECT*FROMuser‘);foreach($query->result()as$row){echo$row->userid;echo$row->name;echo$row->sex;}}//举例插入(use..
分类:数据库   时间:2014-07-08 08:41:54    阅读次数:273
springmvc3.2+spring+hibernate4全注解方式整合(二)
jdbc.properties#hibernate settings hibernate.show_sql=truehibernate.format_sql=truehibernate.cache.use_query_cache=truehibernate.cache.provider_class=...
分类:编程语言   时间:2014-07-07 12:43:02    阅读次数:184
响应式网站代码收集整理
1、meta标签大多数移动浏览器将HTML页面放大为宽的视图(viewport)以符合屏幕分辨率。你可以使用视图的meta标签来进行重置。下面的视图标签告诉浏览器,使用设备的宽度作为视图宽度并禁止初始的缩放。在标签里加入这个meta标签IE8或者更早的浏览器并不支持Media Query。你可以使用...
分类:Web程序   时间:2014-07-07 12:12:20    阅读次数:190
PHP、Java输出json格式数据
PHP 输出json。 $result = mysql_query($sql); //查询结果 $users=array(); $i=0; while($row=mysql_fetch_array($result,MYSQL_ASSOC)){ $users[$i]=$row; $i+...
分类:编程语言   时间:2014-07-07 11:12:16    阅读次数:293
[BAT]批处理自动修改区域和语言选项
open a cmd window and type reg query "HKCU\Control Panel\International" which will show you the values as you want them.Then to modify them, use REG A...
分类:其他好文   时间:2014-07-06 23:26:01    阅读次数:1227
通过profile优化SQL语句
开启profile优化SQL语句:set profiling=1;执行SQL语句show profiles;show profile for query 2;//根据query_id 查看某个查询的详细时间耗费SHOW STATUS LIKE 'last_query_cost';//查询上一条语句执...
分类:数据库   时间:2014-07-05 21:14:47    阅读次数:321
hibernate批量删除和更新数据
转载自:http://blog.csdn.net/yuhua3272004/article/details/2909538Hibernate3.0 採用新的基于ANTLR的HQL/SQL查询翻译器,在Hibernate的配置文件里,hibernate.query.factory_class属性用来选...
分类:系统相关   时间:2014-07-05 20:45:47    阅读次数:295
post 抓取
function curlBy($url, $data=array()){ $ch = curl_init(); if(!empty($data)){ if (is_array($data) && $data) { $formdata = http_build_query($data); curl....
分类:其他好文   时间:2014-07-05 17:10:24    阅读次数:228
MySQL在Windows和Linux下还原数据库
Linux下还原数据库代码: 1,创建一个空的数据库cddl mysql> create database cddl; Query OK, 1 row affected (0.00 sec) 2,还原数据库 [root@chicago mysqlsoftware]# cd /etc/rc.d/init.d [root@chicago mysqlsoftware]# cd /etc/rc...
分类:数据库   时间:2014-07-04 08:58:17    阅读次数:301
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!