define( "ONE_DAY_SEC", 24 * 3600 );
// 日付けの差分をとる関数
function dateDiff( $date1, $date2 ) {
return ( strtotime( $date1 ) - strtotime( $date2 ) ) / ONE_DAY_SEC;
}
// 実行サンプル
$date1 = date('Y/m/d…
select c1,c2,c3 from A
union all
select c1,c2,c3 from B
参照元:http://detail.chiebukuro.yahoo.co.jp/qa/question_detail/q1115439551
graffiti on the web
この投稿へのコメント
コメントはまだありません。