2020年4月28日

客户端运行服务器端程序

摘要: 服务器端有个数据爬虫,本身会定时运行。但是有时候客户端需要立即在服务器端运行该爬虫程序。 <解决办法一>有个非即时性的解决办法,就是用客户端将需求写入一个任务表中,服务器定时扫描该表,有任务就执行。可以在任务计划程序中定义一个计划,每分钟扫描一次任务表。但是有时候一分钟的交互仍然较长,开始思考有没有 阅读全文

posted @ 2020-04-28 15:33 清水古木 阅读(278) 评论(0) 推荐(0) 编辑

2020年3月2日

Difference between Amazon API Call GetLowestOfferListingsForASIN and GetLowestPricedOffersForASIN

摘要: GetLowestOfferListingsForASIN http://docs.developer.amazonservices.com/en_US/products/Products_GetLowestPricedOffersForASIN.html GetLowestPricedOffers 阅读全文

posted @ 2020-03-02 22:23 清水古木 阅读(134) 评论(0) 推荐(0) 编辑

2019年12月2日

将字符串根据特定分隔符输出为字典/数组/表格

摘要: ALTER FUNCTION [dbo].[StringToDic](@input varchar(max),@delimiter_r varchar(max),@delimiter_c varchar(max)) RETURNS @t TABLE(OKey varchar(max),OValue varchar(max)) AS BEGIN -- Fill the table vari... 阅读全文

posted @ 2019-12-02 10:33 清水古木 阅读(245) 评论(0) 推荐(0) 编辑

2019年3月10日

Common table express

摘要: 现有一张采购订单表p,写出SQL语句以查询每次采购价格Price发生变动的日期。 ID Price Date 1 3.5 2019-01-01 2 3.5 2019-01-04 3 3.4 2019-01-05 4 3.2 2019-01-05 5 3.2 2019-01-09 6 3.2 2019 阅读全文

posted @ 2019-03-10 18:27 清水古木 阅读(153) 评论(0) 推荐(0) 编辑

2018年7月4日

通过字符串路径获取对象的属性值

摘要: Public Function GetProperty(objInput As Object, proString As String, Optional delimiter As String = "_") Dim proPath As String() = Split(proString, delimiter), objLoc As Object = objInput For E... 阅读全文

posted @ 2018-07-04 22:16 清水古木 阅读(334) 评论(0) 推荐(0) 编辑

上传EXCEL表格至SQL数据库(自动建表)

摘要: Public Sub AutoTable() Dim conExcel As New Connection, conSQL As New Connection, rs As New Recordset, fieldDef As String, fieldStr As String, rsValue As String, fileName As String, tabName As Stri... 阅读全文

posted @ 2018-07-04 22:12 清水古木 阅读(1671) 评论(0) 推荐(0) 编辑

2018年4月22日

SQL将查询内容输出为html表格

摘要: 1 CREATE PROCEDURE [dbo].[QUERY_TABLE](@conn varchar(200),@title varchar(200),@desc varchar(max),@query nvarchar(max),@link_ref nvarchar(max), 2 @html nvarchar(max) output) 3 AS 4 BEGIN ... 阅读全文

posted @ 2018-04-22 19:18 清水古木 阅读(1784) 评论(2) 推荐(0) 编辑

SQL输出数据透视表

摘要: 1 CREATE PROCEDURE [dbo].[p_Pivot_WithSum_VH](@tabName nvarchar(MAX),@rowName nvarchar(MAX),@colName nvarchar(MAX), 2 @numName nvarchar(MAX),@calcMethod nvarchar(MAX)) 3 AS 4 BEGIN 5 -- ... 阅读全文

posted @ 2018-04-22 19:11 清水古木 阅读(1397) 评论(0) 推荐(0) 编辑

2017年5月18日

时区

摘要: Greenwich Mean Time(GMT): +0 Universal Time Coordinate(UTC): +0 Pacific Standard Time(PST): -8 Pacific Daylight Time(PDT): +8 Eastern Daylight Time(ED 阅读全文

posted @ 2017-05-18 11:29 清水古木 阅读(148) 评论(0) 推荐(0) 编辑

导航