Popular Posts
Convert relative url to absolute Uri baseUri = new Uri("http://www.domain.com/path/sample"); Uri absoluteUri = new Uri(baseUri, "../../other/path"); Uri... jQuery serialize form to json $.fn.serializeObject = function() {     var o = {};     var a = this.serializeArray();     $.each(a, function() {         if (o[this.name]) ... Math function 函數 說明 ABS(N) 絕對值 SIGN(N) N>0 : 1, N=0 : 0, N<0 : -1 CEIL(N) 大於N的最小整數值 ...
Stats
Fill zero in front of number
SQL Server:
select replicate('0', (10-len('123')))+'123'
Oracle:
SELECT LPad('123',10,'0') FROM dual
DB2:
values char(repeat('0',10-length('123'))||'123',10)