MYSQL:
http://www.cnblogs.com/yuanchenqi/articles/7269675.html
http://www.cnblogs.com/yuanchenqi/articles/7250680.html