代码改变世界

随笔档案-2012年02月

Sql常见面试题(总结)

2012-02-17 15:07 by 一品黄山, 372 阅读, 收藏,
摘要: 转自:http://cuijiemin.iteye.com/blog/1055795Sql常见面试题(总结)1.用一条SQL语句 查询出每门课都大于80分的学生姓名name kecheng fenshu 张三 语文 81张三 数学 75李四 语文 76李四 数学 90王五 语文 81王五 数学 100王五 英语 90A: select distinct name from tablewherename not in (select distinct name from table where fenshu<=80)2.学生表 如下:自动编号 学号 姓名 课程编号 课... 阅读全文

php学习笔记——12年2月16日开始不断更新

2012-02-16 15:50 by 一品黄山, 234 阅读, 收藏,
摘要: 1. include_once的一个赋值方式idc.php文件里这么写:return array('default'=>array('IP_dir1'=>'192.168.1.1', 'IP_dir2'=>'192.168.1.2', 'IP_dir3'=>'192.168.1.3'));index.php文件里这么写:define("DIR",str_replace("","/",dirname(_ 阅读全文

apache的rewirte配置

2012-02-09 13:33 by 一品黄山, 326 阅读, 收藏,
摘要: 任何二级域名,均跳转到www下。本地测试站点:www.myphp.com,下面是apache里的配置:<VirtualHost *> <Directory "D:/webroot/myphp.com"> Options -Indexes FollowSymLinks Allow from all AllowOverride All </Directory> ServerAdmin admin@www.myphp.com DocumentRoot "D:/webroot/myphp.com" ServerName myp 阅读全文