原创 if exists用法(判斷對象的用法)
1 判斷數據庫是否存在 if exists (select * from sys.databases where name = ’數據庫名’) drop database [數據庫名] 2 判斷表是否存在 if exists (sele
原创 DisplayFormat屬性
DataFormatString="{0:格式字符串}" 在DataFormatString 中的 {0} 表示數據本身,而在冒號後面的格式字符串代表所們希望數據顯示的格式; 數字、貨幣格式: 在指定的格式符號後可以指定小數所要
原创 npoi 操作excell 可以下載的鏈接
源代碼下載 https://github.com/nissl-lab/npoi 教程下載 https://github.com/nissl-lab/npoi/wiki/Getting-Started-with-NPOI Exampl
原创 node.js壓縮
var zlib = require("zlib"); var input = '...............text..............'; //inflate 充氣 deflate壓縮 //gzip/gunzip:標準
原创 node.js mqtt樣例
const mqtt = require('mqtt') //import mqtt from 'mqtt' // 連接選項 const options = { clean: true, // 保留回話
原创 !function(){}()
常見格式:(function() { /* code */ })();解釋:包圍函數(function(){})的第一對括號向腳本返回未命名的函數,隨後一對空括號立即執行返回的未命名函數,括號內爲匿名函數的參數。作用:可以用它創建命名空間,
原创 mysql的事件默認是關閉的,需要SET GLOBAL event_scheduler = ON; 手動開啓
-- 查看事件是否開啓 SELECT @@event_scheduler;--手動開啓事件SET GLOBAL event_scheduler = ON;
原创 C#圖片存入數據庫及其讀出顯示
<1>將圖片轉換成二進制插入數據庫 FileStream fs = new FileStream("D:\\Add.ico",FileMode.Open); byte[] imagebytes = new
原创 linux 下新增用戶後無法使用TAB補全功能
一、背景 今天在ubuntu上使用useradd新建了一個用戶,發現用新建的用戶登陸無法使用tab鍵補全,這個問題是否讓人惱火,所以來解決一下。二、解決1)方式一 方式二: 一勞永逸型的。這樣問題就解決了三、補充知