当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: if not exists (select * from db
 

 

    摘要: borland亚太地区产品总监的旧文章:让用户可用脚本控制你的应用程序 ......
 ·borland人物介绍    »显示摘要«
    摘要: http://www.delphidevelopers.com/borland/borland_somebody.htm ......


SQLServer中一个多用户自动生成编号的过程

if not exists (select * from dbo.sysobjects where id = object_id(n[indextable]) and objectproperty(id, nisusertable) = 1)

create table indextable(ex char(20), num integer) 【程序编程相关:谈用Access数据库做服务器

【推荐阅读:进程、窗口句柄、文件属性、程序运行状态

create procedure setindex @ex char(20),@result char(30) output,@fmt integer 【扩展信息:以最少的资源耗用,显示系统键状态

go

as

  declare @num char(10)

  set nocount on

  if not exists(select num from indextable where ex=@ex )

   insert into indextable values(@ex,1)

  else

   update indextable set num=num+1

  select @num=cast(num as char(10)) from indextable where ex=@ex


...   下一页
 ·delphi接口编程的两大陷阱    »显示摘要«
    摘要: 陷阱一、接口的类型转换陷阱  a) 不能把一个对象引用强制转换成这个引用的类型没有声明实现的接口,即使这个对象实际实现了这个接口(呵呵,优点拗口)。   b) 当把一个对象变量赋给一个接口变量,在把这个接口变量赋还给对象变量时,这个对象变量的地址已经变了,也就是不再是原来的对象了,而是指向一个错误的地址。  例如: i1 = interfacefunction do: boolea......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE