12 2020 档案
摘要:C# 远程服务器 安装、卸载 Windows 服务,读取远程注册表,关闭杀掉远程进程 #region Windows Service 操作 /// /// 安装Windows 服务 /// ///可执行文件的完全路径 public void Install(string webIp, string
阅读全文
摘要:使用WCF实现消息推送 1.协议 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ServiceModel; namespace WCFHub.ISe
阅读全文
摘要:各种数据类型(日期/时间、integer、floating point和numeric)转换成格式化的字符串以及反过来从格式化的字符串转换成指定的数据类型。下面列出了这些函数,它们都遵循一个公共的调用习 惯:第一个参数是待格式化的值,而第二个是定义输出或输出格式的模板。 函数 返回类型 描述 例子
阅读全文
摘要:--按姓氏笔画排序 select * from student order by [name] collate chinese_prc_stroke_cs_as_ks_ws asc --默认按姓氏拼音排序 select * from student order by [name] asc --按姓氏
阅读全文
摘要:导出 pg_dump 备份:pg_dump -h localhost -p 5432 -U tradesns -W -F c -b -v -f "/home/tradeworkwangbin/us2010.backup" us2010 恢复:pg_restore -h 192.168.0.100 -
阅读全文
摘要:create tablespace BSITS datafile 'D:\app\Administrator\product\11.2.0\dbhome_1\BSITS.DBF' size 256m autoextend on next 256m segment space management a
阅读全文
摘要:Oracle : SELECT * FROM ( SELECT A.*, ROWNUM RN FROM (SELECT * FROM T_CAR_BAYONET) A WHERE ROWNUM <= 40 ) WHERE RN >= 21 SQL Server: select top 10 * fr
阅读全文
摘要:PostgreSQL 利用Pgpool-II的集群搭建方案 1. 下载安装 在官网 http://pgfoundry.org/projects/pgpool 下载 pgpool-II 2.2.2.tar.gz ,执行以下命令安装: Java代码 http://mengqingyu.javaeye.c
阅读全文
摘要:用户需要授予权限 grant change notification to hfspas; public void GetDatabaseChange() { string sql = "select * from t_prescription_handwork where trunc(checki
阅读全文
摘要:ashx 获取ajax Post到后台json数据 前台页面代码: var json = [{ "Name": "Pavan Kumar Pabothu", "Age": 27, "ID": 361621 }, { "Name": "Reddaiah Raju Padhmaraju", "Age":
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Management; using System.ServiceProcess; using System.Text; using Syst
阅读全文

浙公网安备 33010602011771号