发布网友 发布时间:2022-10-06 02:29
共2个回答
热心网友 时间:2023-10-21 16:03
DECLARE @s datetime热心网友 时间:2023-10-21 16:03
用substr()函数来截取月份和日期追问详细应该怎么写,表名asset,select ? from asset where id=123.追答$arr = select createtime from asset where id='123';
$arr = substr($arr,0,10)
$arr = explode('-',$arr);
foreach($arr as $v){
echo $arr['1'].$arr['2'];
}