PHP 在sql查询语句中转换时间戳

//tp框架  	
   field('*,FROM_UNIXTIME(create_at,"%Y年%m月%d日") as create_at');
//laravel框架  
selectRaw('*,FROM_UNIXTIME(created_at,"%Y年%m月%d日") as gotmoney_date')

你可能感兴趣的:(PHP,Mysql)