create function dbo.Fn_Sort ( @str varchar(1024) )returns nvarchar(100)asbegindeclare @tb table(num int)declare @strtemp varchar(100)declare @cID varc...
分类:
数据库 时间:
2014-06-27 20:37:28
阅读次数:
255
这里需要使用到case when语句,这个就是sql中的if else语句: select a.ins_id, b.product_id, b.product_name, c.cust_id, c.cust_name, c.cust_sex, c.cust_age, c.family_num, --...
分类:
数据库 时间:
2014-06-27 16:11:21
阅读次数:
297
使用Oracle Form Builder创建Form具体步骤(Data Source为Table)说明:当Block使用的Data Source为Table时,Form会自动Insert,Update,Delete,Lock。若要显示non-database Item,需在POST-QUERY T...
分类:
其他好文 时间:
2014-06-27 15:45:22
阅读次数:
254
-- 修正用プログラム DECLARECURSOR c_adv_fee_detail ISSELECT adv_fee.fee_mgmt_num,adv_fee.fee_mgmt_eda,adv_fee.receipt_num,adv_fee.his,adv_fee.ksai_sha_code,ad...
分类:
其他好文 时间:
2014-06-27 11:36:56
阅读次数:
292
Re'entrantLock lock = new ReentrantLock(fair);
Condition
notEmpty = lock.newCondition(); //返回内部类 AbstractQueuedSyncronizer.ConditionObject
各自维护了两个队列.一个是阻塞同步队列 syncQueue 双向队列,一个是条件等待队列....
分类:
数据库 时间:
2014-06-27 09:10:37
阅读次数:
505
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define inf 0x3f3f3f3f
#define ll __int64
#define mod 1000000007
using namespace std;
int n,k,cnt,num[2],len[...
分类:
其他好文 时间:
2014-06-27 07:49:09
阅读次数:
248
FOUND_ROWS()的用法:例子:CREATEPRODURETEST(INNAMEVARCHAR(20),OUTNUMBER)ASBEGINIFNAMEISNULLORNAME==‘‘THENSELECT*FROMEMPLOYEES;ELSESELECT*FROMEMPLOYEESWHEREFIRST_NAMELIKENAME;ENDIF;SELECTFOUND_ROWS()INTONUMBER;END;在命令行中:CALLTEST(‘test‘,@num);SELECT@num..
分类:
数据库 时间:
2014-06-27 06:55:58
阅读次数:
312
Given a set of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Thesamerepeated num...
分类:
其他好文 时间:
2014-06-26 15:50:35
阅读次数:
176
以前我们为了能够调用一个方法,必须比照这个方法定义一个相应的delegate.
原先我们定义delegate
//
委托声明 --
定义一个签名:
delegate doubleMathAction(double num);
class DelegateTest
{
//
符合委托声明的常规方法
static double Double(double i...
分类:
其他好文 时间:
2014-06-26 13:49:06
阅读次数:
164
在Win7关机选项中一共有7种关闭方式,分别为Switch user(切换用户), Log off(登出), Lock(锁定), Restart(重启), Sleep(睡眠), Hibernate(休眠), Shut down(关机).下面分别介绍一下它们的区别:1.Switch user, Log...