mysql
maoamao2008
这个作者很懒,什么都没留下…
展开
-
Mysql 读取 表结构
[code="sql"]select `TABLE_NAME` from `INFORMATION_SCHEMA`.`TABLES` where `TABLE_SCHEMA` = 'truck_development' and `TABLE_TYPE` = 'BASE TABLE'select * from information_schema.tables where table_schem...2008-01-19 12:05:24 · 130 阅读 · 0 评论 -
Mysql左连接/右连接/全连接查询
Mysql左连接/右连接查询表 turck --车辆信息:id,ch...表 fee --费用信息:summary,type...-----------------------------------------------------------------------------------------------------------------------查询出...2008-01-19 12:07:38 · 78 阅读 · 0 评论 -
mysql嵌套子查询
查询产生费用的车辆应收,实收 的保险费用[code="sql"]select truck.ch , (select sum(bxfee) from fee where truck_id = truck.id and `type`='付' ) fbxf, (select sum(bxfee) from fee where truck_id = truck.id and `type...2008-03-28 11:49:42 · 157 阅读 · 0 评论 -
Mysql my.cnf配置
find -name 'my-*.cnf' my-huge.cnf my-innodb-heavy-4G.cnf my-large.cnf my-medium.cnf my-small.cnf 等文件.将其中合适你机器配置的文件拷贝到/etc/my.cnf或mysql data目录/my.cnf(/var/db/mysql)下或~/.my.cnf.文件内都有详细的说明 [mysqld...原创 2009-12-04 22:33:31 · 418 阅读 · 0 评论 -
Mysql 慢查询 分析
原文链接:http://bbs.linuxtone.org/thread-813-1-1.html IT运维专家网--"自由平等,互助分享!" mysql有一个功能就是可以log 下来运行的比较慢的sql 语句,默认是没有这个log 的,为了开启这个功能,要修改my.cnf 或者在mysql 启动的时候加入一些参数。如果在my.cnf 里面修改,需增加如下几行long_query_...原创 2009-12-07 10:44:07 · 100 阅读 · 0 评论