比如在Northwind数据库中有一个查询为SELECT c.CustomerId,CompanyName FROM Customers cWHERE EXISTS(SELECT OrderID FROM Orders o WHERE o.CustomerID=c.CustomerID) 这里面的E...
分类:
数据库 时间:
2014-09-03 21:17:27
阅读次数:
238
添加附件 string file = "Files"; string path = Server.MapPath(file); if (!System.IO.Directory.Exists(path))//判断文件夹是否已经存在 { System.IO.Directory.CreateDire.....
分类:
其他好文 时间:
2014-09-03 19:34:07
阅读次数:
239
Quick Tip: How to Add Syntax Highlighting to Any Projectpublic String showAllArticleForPage() throws Exception{HttpServletRequest request = ServletActionContext.getRequest();String username=(String) A...
分类:
其他好文 时间:
2014-09-03 13:05:56
阅读次数:
201
使用ApplicationWindow、MediaPlayer、XMLHttpRequest、TextArea、MenuBar、ToolBar、Action、Image、动态创建组件等等特性的综合实例。...
分类:
其他好文 时间:
2014-09-02 17:57:25
阅读次数:
432
在git for windows里面不能commit修改,提示open shellopen shell以后,使用git add [filename],会报错:fatal: Unable to create './.git/index.lock': File exists. If no other g...
Eclipse 的 Quick Access 工具栏作为标配,占了好大一截工具栏,太烦人了,想办法去掉它。 解决办法: 1、确认当前 Eclipse 使用的主题,在 Windows?->?Prefencees?->?General?->?Apperances 可以看到。比如...
分类:
数据库 时间:
2014-09-02 16:02:35
阅读次数:
221
mina是非常好的C/S架构的java服务器,这里转了一篇关于它的使用感受。前言MINA是Trustin Lee最新制作的Java通讯框架。通讯框架的主要作用是封装底层IO操作,提供高级的操作API。比较出名的通讯框架有C++的ACE、Python的Twisted,而Java的通讯框架还有Quick...
分类:
其他好文 时间:
2014-09-02 13:49:14
阅读次数:
209
quick-x数据加密
一,数据加密
只要是 利用quick 封装的
local
Crypto = require("framework.crypto")
-- 算法加密解密
来制作
function crypto.encryptXXTEA(plaintext, key)
plaintext = tostring(plaintext)...
分类:
其他好文 时间:
2014-09-01 19:41:33
阅读次数:
263
在应用程序的InitInstance方法中,添加如下几行代码:CreateMutex(NULL,true,m_pszAppName); if(GetLastError()==ERROR_ALREADY_EXISTS) { AfxMessageBox(_T("程序已启动"),MB_OK|MB_APPLMODAL|MB_ICONSTOP); returnfalse; }
分类:
其他好文 时间:
2014-09-01 15:52:03
阅读次数:
164
MySQL replace into 用法(insert into 的增强版)
在向表中插入数据的时候,经常遇到这样的情况:1. 首先判断数据是否存在; 2. 如果不存在,则插入;3.如果存在,则更新。
在 SQL Server 中可以这样处理:
if not exists (select 1 from t where id = 1)
insert into t(i...
分类:
数据库 时间:
2014-09-01 12:37:13
阅读次数:
287