如何仅显示mysql中datetime列中的时间?

时间:2018-11-03 05:53:57

标签: php mysql jquery-jtable

我正在显示数据jTable。

这是MYSQL查询和jtable。创建的最后一列是我所需的栏位。

createdat: {
    title: 'Paid_Date',
    type:'datetime',

    sorting: 'id DESC',
    width: '15%',
}

$sql_qry1 .= "s_student_master.block,";

$sql_qry1 .= "s_fee_details.termid,";

$sql_qry1 .= "s_fee_details.feeid,s_fee_details.fee_subcategory_id,s_fee_details.feetype,";

$sql_qry1 .= "s_fee_ledger_entry2.fee_details_id, s_fee_details.fee_amount, ";

//$sql_qry1 .= "s_fee_discount_details.discount_amount,s_fee_ledger_entry2.amount_paid, payment_mode, paid_by, paid_date, remarks ";

$sql_qry1 .= "s_fee_ledger_entry2.amount_paid, payment_mode, paid_by, paid_date, remarks , **s_fee_ledger_entry2.createdat** ";

$sql_qry1 .= "FROM " . $table_name_for_create_update_delete; 

这是我的问题是如何在上述查询中的s_fee_ledger_entry2.createdat上应用条件以获得时间。我正在使用点运算符,这是我的问题。

0 个答案:

没有答案