shamu
2018年12月6日 星期四
mysql 時戳與日期轉換
日期轉時戳
select unix_timestamp('2013-01-01 10:10:10');
時戳轉日期
select from_unixtime(1355272360,'%Y/%m/%d %H:%i');
2018年11月6日 星期二
SQL語法優化
顯示各語法執行時間
set profiling=1;
SET profiling_history_size = 0;
SET profiling_history_size = 100;
***SQL語法***
show profiles;
查看某個語法細節
show profile for query [profiles.Query_ID];
2018年5月29日 星期二
Asynchronous Programming with Async/Await
public async Task<string> GetHtmlAsync(string url)
{
var webClient = new webClient();
return await webClient.DownloadStringAsync(url);
}
2018年5月28日 星期一
Exception Handling
using(var temp = new class())
{
}
public class className():Exception
{
public className(string message,Exception innerException)
:base(message, innerException)
{
}
}
dynamic
dynamic
2018年5月16日 星期三
extension method
namespace system
{
public static class stringExtension
{
public static string stringMethod(this String str, int aaa)
{
your method...
}
}
}
event
Event
EventHandler<>
較新的文章
較舊的文章
首頁
訂閱:
文章 (Atom)