
mysql
Jimy
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Mysql 高级sql操作: DELETE,UPDATE与LEFT JOIN
最近了解到,mysql可以直接联表操作:联表修改:update t1,t2 set t1.c1=* ,t2.c2=* where t1.c3=t2.c3 and t1.c2=*;例如:修改纸条状态update relation , information set relation.status = 2 where relation.infoid=information.info转载 2012-02-21 18:02:51 · 5857 阅读 · 0 评论 -
MySQL中的临时表使用方法
当工作在非常大的表上时,你可能偶尔需要运行很多查询获得一个大量数据的小的子集,不是对整个表运行这些查询,而是让MySQL每次找出所需的少数记录,将记录选择到一个临时表可能更快些,然后多这些表运行查询。 当工作在非常大的表上时,你可能偶尔需要运行很多查询获得一个大量数据的小的子集,不是对整个表运行这些查询,而是让MySQL每次找出所需的少数记录,将记录选择到一个临时表可能更快些,然后多这些转载 2012-02-21 18:06:50 · 2074 阅读 · 0 评论 -
MYSQL常用命令
1.导出整个数据库mysqldump -u 用户名 -p --default-character-set=latin1 数据库名 > 导出的文件名(数据库默认编码是latin1)mysqldump -u wcnc -p smgp_apps_wcnc > wcnc.sql2.导出一个表mysqldump -u 用户名 -p 数据库名 表名> 导出的文件名mysqldump -u转载 2012-04-24 10:34:06 · 378 阅读 · 0 评论 -
mysql remote access
-- allow remote access#service iptables stop#chkconfig iptables off#mysql -uroot -p1234->GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' identified by '1234';原创 2012-07-30 10:03:29 · 886 阅读 · 0 评论 -
MySQL stored procedures with Ruby
转自:http://guyharrison.typepad.com/guy_harrisons_blog/2006/04/mysql_stored_pr.htmlRuby's getting an incredible amount of attention recently, largely as the result of Ruby on Rails. I've played转载 2012-10-09 23:02:15 · 700 阅读 · 0 评论