mysql 查询 JQUERY Bootgrid Table 列表中的印度货币格式
INDIAN Currency Formating in mysql Query for JQUERY Bootgrid Table List
以下是我目前在Bootgrid中的场景Table
<table id="order_grid" class="table table-striped" width="100%" cellspacing="0" data-toggle="bootgrid" style='font-size:14px'>
<thead style="background-color:#337ab7;">
<tr style="color:#ffffff">
<th data-column-id="id" data-type="numeric" data-identifier="true" data-visible="false">Id</th>
<th >#</th>
<th data-column-id="dc_date">Date</th>
<th data-column-id="id">DC No</th>
<th data-column-id="customer">Customer</th>
<th data-column-id="tot_pcs">Pieces</th>
<th data-column-id="tot_sqft">SQft</th>
<th data-column-id="tot_appvalue">App Value</th>
<th data-column-id="commands" data-formatter="commands" data-sortable="false">Action</th>
</tr>
</thead>
</table>
其mysql查询如下
SELECT dc_no AS id,
customer,
tot_pcs,
tot_sqft,
format(tot_appvalue,2) AS tot_appvalue,
DATE_FORMAT(dc_date, '%d-%m-%Y') AS dc_date
FROM dc_header
WHERE active=1
但我需要的是印度货币格式。
例如 10,00,00,000.00
表示 100000000,但我得到 100,000,000.00
SELECT dc_no AS id,
customer,
tot_pcs,
tot_sqft,
format(tot_appvalue,2,'en_IN') AS tot_appvalue,
DATE_FORMAT(dc_date, '%d-%m-%Y') AS dc_date
FROM dc_header
WHERE active=1;
Mysql 将支持基于 locale.Please 的货币格式化程序,参考
以下是我目前在Bootgrid中的场景Table
<table id="order_grid" class="table table-striped" width="100%" cellspacing="0" data-toggle="bootgrid" style='font-size:14px'>
<thead style="background-color:#337ab7;">
<tr style="color:#ffffff">
<th data-column-id="id" data-type="numeric" data-identifier="true" data-visible="false">Id</th>
<th >#</th>
<th data-column-id="dc_date">Date</th>
<th data-column-id="id">DC No</th>
<th data-column-id="customer">Customer</th>
<th data-column-id="tot_pcs">Pieces</th>
<th data-column-id="tot_sqft">SQft</th>
<th data-column-id="tot_appvalue">App Value</th>
<th data-column-id="commands" data-formatter="commands" data-sortable="false">Action</th>
</tr>
</thead>
</table>
其mysql查询如下
SELECT dc_no AS id,
customer,
tot_pcs,
tot_sqft,
format(tot_appvalue,2) AS tot_appvalue,
DATE_FORMAT(dc_date, '%d-%m-%Y') AS dc_date
FROM dc_header
WHERE active=1
但我需要的是印度货币格式。
例如 10,00,00,000.00
表示 100000000,但我得到 100,000,000.00
SELECT dc_no AS id,
customer,
tot_pcs,
tot_sqft,
format(tot_appvalue,2,'en_IN') AS tot_appvalue,
DATE_FORMAT(dc_date, '%d-%m-%Y') AS dc_date
FROM dc_header
WHERE active=1;
Mysql 将支持基于 locale.Please 的货币格式化程序,参考