JOIN 样本 **********************************Update 结存 set 结存.现有库存=c.入仓数-b.出仓数量from 结存 ajoin (select 物料代码,sum(isnull(入仓数,0)) 入仓数 from 进仓 group by 物料代码) c...
分类:
数据库 时间:
2014-07-16 23:06:29
阅读次数:
259
使用该语法可在插入记录的时候先判断记录是否存在,如果不存在则插入,否则更新,很方便,无需执行两条SQL
这个语句知识mysql中,而标准sql语句中是没有的。
INSERT INTO .. ON DUPLICATE KEY更新多行记录
如果在INSERT语句末尾指定了ON DUPLICATE KEY UPDATE,并且插入行后会导致在一个UNIQUE索引或PRI...
分类:
数据库 时间:
2014-07-11 08:24:56
阅读次数:
289
今天往idea里导入其他项目时又遇到了一个问题,单独标记一下。
导入后打开一个布局xml文件,发现不能渲染,报错为:
This version of
the rendering library is more recent than your version of IntelliJ IDEA. Please update IntelliJ IDEA
看字面意思就是...
分类:
其他好文 时间:
2014-07-11 00:10:13
阅读次数:
418
选择Help菜单->Install New Software...在Work with中输入http://subclipse.tigris.org/update_1.10.x,等待完之后,除了Subclipse Integration for Mylyn 3.x (Optional)不要选之外,其它的都选上,下一步,完成。...
分类:
其他好文 时间:
2014-07-10 20:05:27
阅读次数:
184
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;
using System.Text;...
利用pam认证模块锁定多次登陆失败的用户pam模块存放在/lib/security/pam_*****.so编辑/etc/pam.d/sshd添加以下内容authrequiredpam_tally2.sodeny=5lock_time=60当用户通过ssh尝试登陆系统密码输错5次,系统就锁定该账户60S验证:手动解除锁定命令pam_tally2--reset-u用户
分类:
系统相关 时间:
2014-07-10 18:55:47
阅读次数:
500
日志的分离1)初学syslogvoidopenlog(constchar*ident,intoption,intfacility);voidsyslog(intpriority,constchar*format,...);voidcloselog(void);facilityThefacilityargumentisusedtospecifywhattypeofprogramisloggingthemessage.Thisletstheconfigurationfilespecifythatm..
分类:
其他好文 时间:
2014-07-10 18:03:51
阅读次数:
386
程序员盯着屏幕时间长了难免会想看个自己舒服的颜色,尤其是一天下来一直盯着的编辑器
OK
依次点击菜单
Help->Install New Software... 点击add
添加如下插件地址
http://eclipse-color-theme.github.com/update
如下图所示
之后就一步一步的操作
然后如下操作
Window->Preferences...
分类:
系统相关 时间:
2014-07-10 17:41:56
阅读次数:
435
主要分为四步1.安装java环境2.在Eclipse下安装Pydev1)启动 Eclipse,利用 Eclipse Update Manager 安装 PyDev。在 Eclipse 菜单栏中找到 Help栏,选择 Help > Software Updates > Find and Install...
分类:
编程语言 时间:
2014-07-10 16:30:28
阅读次数:
271
1、用非空列 修改 空列update z_taxidriverset mobile=zzdhwhere mobile is null and zzdh is not null2、用全外连接 创建 一个 表格 ,表格的某列中取一定范围的值create table c asselect a.1 a.2 ...
分类:
其他好文 时间:
2014-07-10 15:49:32
阅读次数:
150