I was so excited to find that this is easily doable in C#. Here is the link to the stack overflow page.
Thursday, September 18, 2014
Wednesday, July 23, 2014
Javascript function to mimic c#'s String.Format() method
var format = function (input) {
var args = arguments;
return input.replace(/\{(\d+)\}/g, function (match, capture) {
return args[1*capture + 1];
});
from this github gist
Friday, February 21, 2014
Example of reusing common table expression table name
;with word as ( select 'hello' as word union all select 'goodbye' ) , thing as ( select 'world' as name union all select 'friends' ) , wordthing as ( select w.word + ' ' + t.name statement from word w, thing t ) Select wt.statement from wordthing wt
Result:
Subscribe to:
Comments (Atom)
