STUFF ( character_expression , start , length ,character_expression )select TcodMedInst_GUID,stuff((SELECT ',' + DeptName+'|'+guid FROM TcodDeptHosCon...
分类:
数据库 时间:
2015-05-30 11:59:49
阅读次数:
148
/** * 判断是否是手机访问 */ protected function isMobile() { if(isset($_REQUEST['from_m'])) return false; $userAgent = $_SERVER['H...
分类:
其他好文 时间:
2015-05-30 10:37:33
阅读次数:
109
1.mysql>use mysql;mysql>update user set host = '%' where user = 'root';mysql>select host, user from user;2.mysql>GRANT ALL PRIVILEGES ON *.* TO 'root'...
分类:
数据库 时间:
2015-05-30 10:33:38
阅读次数:
108
分组函数
什么是分组函数?
分组函数作用于一组数据,并对一组数据返回一个值
组函数的类型
lAVG
lCOUNT
lMAX
lMIN
lSUM
数值求和
SQL> --求员工工资总额
SQL> select sum(sal) from emp;
SUM(SAL) ...
分类:
数据库 时间:
2015-05-30 09:25:18
阅读次数:
301
多表查询
连接的类型:
等值连接,不等值连接,外连接,自连接
等值连接
SQL> --等值连接: 查询员工信息:员工号,姓名,薪水和部门名称
SQL> select empno,ename,sal,dname
2 from emp,dept
3 where emp.deptno=dept.deptno;
EMPNO ENAME ...
分类:
数据库 时间:
2015-05-30 09:23:28
阅读次数:
219
Put the Mouse Down and Step Away from the KeyboardBurk HufnagelYOU’VE BEEN FOCUSED FOR HOURS on some gnarly problem, and there’s no solution in sight. So you get up to stretch your legs or to hit the v...
分类:
其他好文 时间:
2015-05-30 09:19:53
阅读次数:
114
Boost Asio 异步TCP服务器框架
flyfish 2015-5-30
session 类 头文件
#pragma once
#include
#include
#include
#include
class session: public boost::enable_shared_from_this
{
public:
session(boost:...
分类:
其他好文 时间:
2015-05-30 08:13:04
阅读次数:
216
Minimum Path SumGiven amxngrid filled with non-negative numbers, find a path from top left to bottom right whichminimizesthe sum of all numbers along ...
分类:
其他好文 时间:
2015-05-30 01:47:19
阅读次数:
138
上一篇文章讲了薪资表的拆分功能,这里讲发送功能。点击打开链接
发送功能是用python的email模块实现的,代码如下。
# -*- coding: cp936 -*-
import smtplib
from email.mime.text import MIMEText
import email.mime.multipart
from email.MIMEMult...
分类:
其他好文 时间:
2015-05-30 00:43:45
阅读次数:
124
CREATE TABLE CANDY_TBL SELECT * FROM PRODUCTS_TBL;INSERT INTO CANDY_TBL VALUES ('9', 'CANDY CORN', 1.35);SELECT * FROM CANDY_TBL;+---------+----------...
分类:
其他好文 时间:
2015-05-30 00:31:29
阅读次数:
157