database mysql

数据库总是没有好好学习, 在校学 sqlserver 当时有点抵制, 现在觉得有点后悔,

在大的时候学习 mysql 当时还不知道怎么安装。 后来多次学习 都没有深入(惭愧)

数据的处理不在其复杂的特性, 不在其市场, 而在于其适用。

信息的精髓 与社会的发展(引导)。

 

price/performance/scalability

 

MySQL is relatively light-weight, can be extremely fast when applications leverage architecture.  Lots of features stay free as the database servers grow such as replication and partitionin

 

Oracle offers lots of feature/functionality for solving complex problems.  Supports large OLTP environments as well as VLDBs.

(Very Large Data Base Endowment)

 

Community (free) – more leading edge.

 

参看变量

mysql> show variables

 

# mysqladmin ariables

 

# mysqld --verbose --help

 

mysql > status 当前状态

 

mysql > show processlist; 进程列表

 

mysql> show global status; 查看全局状态

 

mysql> explain select ... from .. where ...

mysql> desc select ... from ... where ...

 

mysql > analyze table table_name;

mysql > optimize table table_name;

 

int > text

char > varchar

varchar > text

使用枚举类型

 

JION replace Sub-Queries

不要在索引上 运行表达式

查询条件上不要进行类型转化

正确使用like like 'a%' ==> >'a' and <'b'

mysql > show tables status;

 

 

 

 

 

posted on 2013-08-23 20:08  kwingmei  阅读(206)  评论(0编辑  收藏  举报

导航