平時寫SQL查詢、預存程序都是憑著感覺來,沒有探究過SQL的具體文法,一直都是按c#那一套往SQL上模仿,前幾天項目中碰到一個問題引起了我對declare定義變數的範圍的興趣。大家都知道c#中的局部變數,在if中如果我們定義一個變數的話他的作用到if結束為止,if外是不識別這個變數的,else裡都不能使用,簡單的寫一下。Code highlighting produced by Actipro CodeHighlighter
For the same reson as:{a: 'abc', b: 'def'};causes an error but:( {a: 'abc', b: 'def'} );does not.When encountered on the left hand side, the punctuator '{' defines thestart of a block statement, like if{... or while{... etc. The stuffinside the
/*productid Name Age Email Mobile----------- ----------------------- -----------1 long 88 test@gmail.com 130000000002 lz pivot執行步驟:將行轉列,分組確定行數,添加in後面的列,列值是應用聚和函數後的值1. 隱式分組(對左輸入中的所有列除FieldValue,FieldID分組,得到所有行)2.
一、數字。如何注入?假設我們要實現一個顯示新聞的頁面,我們可能會隨手寫下下面的代碼:string id = Request.QueryString["id"]; string sql = "select * from news where ColID=" + id; 如果傳遞過來的 id是我們想像的 數字(比如168),那麼自然不會有什麼問題。但是如果傳遞過來的id是“168 delete from table ”的話,那麼sql的值就變成了“select * from table where
一直沒什麼興趣看jQuery,就用自己那點不咋樣的javascript硬撐著,今天寫一個功能時想嘗試一下,用bind註冊事件時發現怎麼都不好使Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->$("#txtStation").bind("onpropertychange",
第一次寫技術博文,手生的很,水平也有限,有什麼不對的地方大家多多指教。 大家都知道class是參考型別,如果將一個引用變數分配給另一個引用變數,那麼這個賦值操作進行的是一個淺拷貝,這兩個引用變數將指向記憶體中的同一個對象。 我們有這樣一個類的賦值操作就是執行這樣的操作。代碼Code highlighting produced by Actipro CodeHighlighter