2019年11月11日

摘要: DCOM架构: 服务端开发: 采用Delphi7+SQL2008 一、创建数据库和表 [sql] view plain copy CREATE TABLE [dbo].[tb_Department]( [FKey] [uniqueidentifier] NOT NULL, [FName] [varc 阅读全文
posted @ 2019-11-11 10:17 岁月寒风 阅读(1132) 评论(0) 推荐(0) 编辑

2019年11月6日

摘要: create TABLE #tempshopt ( shopid varchar(max) ) set @aSql = 'insert into #tempshopt(shopid) select shopid from s_shopid where shopid in ('+@shop+') an 阅读全文
posted @ 2019-11-06 09:12 岁月寒风 阅读(675) 评论(0) 推荐(0) 编辑

2019年10月22日

摘要: uses StrUtils; function ReversePos(SubStr, S: String): Integer; var i : Integer; begin i := Pos(ReverseString(SubStr), ReverseString(S)); if i > 0 the 阅读全文
posted @ 2019-10-22 18:01 岁月寒风 阅读(1449) 评论(0) 推荐(1) 编辑

2019年10月18日

摘要: 1.下载文件并保存文件到本地 2.下载文件流,返回byte流 阅读全文
posted @ 2019-10-18 16:31 岁月寒风 阅读(5326) 评论(0) 推荐(0) 编辑

2019年10月14日

摘要: 利用SQL语句一次清空所有数据.找到了三种方法进行清空.使用的数据库为MS SQL SERVER. 1.搜索出所有表名,构造为一条SQL语句 declare @trun_name varchar(8000) set @trun_name='' select @trun_name=@trun_name 阅读全文
posted @ 2019-10-14 09:53 岁月寒风 阅读(5875) 评论(0) 推荐(0) 编辑

2019年10月10日

摘要: 何谓SQLSERVER参数嗅探 大家听到“嗅探”这个词应该会觉得跟黑客肯定有关系吧,使用工具嗅探一下参数,然后截获,脱裤o(∩_∩)o 。 事实上,我觉得大家太敏感了,其实这篇文章跟数据库安全没有什么关系,实际上跟数据库性能调优有关 相信大家有泡SQLSERVER论坛的话不多不少应该都会见过“参数嗅 阅读全文
posted @ 2019-10-10 11:41 岁月寒风 阅读(1501) 评论(0) 推荐(0) 编辑

2019年10月9日

摘要: Delphi: procedure TForm1.Button1Click(Sender: TObject); var strSQL, sfilename: string; MStream: TMemoryStream;begin con1.Connected:=true; qry1.sql.cle 阅读全文
posted @ 2019-10-09 15:30 岁月寒风 阅读(434) 评论(0) 推荐(0) 编辑

2019年9月29日

摘要: 之前学习了用API实现,让我们再学习下用DELPHI的TThread类。 先新建一个普通的工程,再新建一个线程类File>>New>>Othre>>Delphi File>Thread Object,取个名字,DELPHI会自动生成一个单元,我们只需往里简单添加功能代码,和在要使用的单元里实例引用即 阅读全文
posted @ 2019-09-29 17:57 岁月寒风 阅读(8321) 评论(0) 推荐(0) 编辑

2019年8月14日

摘要: @@c_beiz varchar(500) select top 1 @c_beiz = c_beiz from g_billd_qh_tmp where u_id=''+@uid+'' and iodate=''+@iodate+'' and gfrom=''+@gfrom+'' and gto= 阅读全文
posted @ 2019-08-14 15:14 岁月寒风 阅读(1219) 评论(0) 推荐(0) 编辑

2019年5月29日

摘要: 方法一: create table tb ( id int, num int ) insert into tb select 1,10 insert into tb select 1,20 insert into tb select 2,80 insert into tb select 2,null 阅读全文
posted @ 2019-05-29 17:30 岁月寒风 阅读(4818) 评论(0) 推荐(0) 编辑

导航