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

MySQL的查询优化很傻

select id from message where author_id in (select followed_id from Relation where follower_id=1) order by id desc   和 分别执行 $userlist = select followed_id from Relation where follower_id=1 再 select id from message where author_id in ($userlist) order by id desc   竟然有两个数量级的差别,DAMN IT!!!!


相关文档:

Weblogic 9.1的domain配置mysql连接池

 
Weblogic 9.1的domain配置mysql连接池
  本文介绍在weblogic 9.1下的domain配置mysql连接池步骤:
  1.在weblogic目录下的serverlib下添加mysql驱动
  mysql-connector-java-3.1.11-bin.jar
  2.在weblogic目录下的commonin下找到commEnv.cmd打开
  找到set weblogic_classpath= 后边加上mysql驱动 ......

PHP中的常用的25个MYSQL函数

1、mysql_connect()-建立数据库连接 {3RY4HVT?  
格式: Fv n:V\eb  
resource mysql_connect([string hostname [:port] [:/path/to/socket] [, string username] [, string password]]) _I;+p eq  
例: 1(V>8}zn  
$conn = @mysql_connect("localhost", "username", "password") or dir(" ......

MySql的安装


Mysql安装
Mysql的安装文件可以直接到 http://www.mysql.com 下载,获得for win32的.zip包,建议选择4.0.20d版本。这里不详细说明。
  下载获得Mysql的for win32安装包后,用winzip解压缩,直接运行setup.exe,需要注意的是选择一个安装路径,当然,安装路径可以任意,建议选择C:\MySQL目录。安装完成后MySQL也就完成 ......

mysql:万恶的乱码之when语句中产生的乱码

使用mysql又遇到问题了,这次是关于乱码的...
其实我也比较了解编码的问题,也知道乱码产生的原理,而且网上对mysql的乱码问题也有比较多的解答,
但是今天我遇到的这个乱码却比较奇怪,在when语句中产生了奇怪的乱码。
create table my_table(id int, name varchar(50), born DateTime);
insert into my_table val ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号