有没有工具将MySQL数据库结构导出到Excel文件?例如:
1 ID int(10) not null pri 0 index comment
Run Code Online (Sandbox Code Playgroud)
谢谢你的帮助.
我漂浮着
float data = 24931192;
Run Code Online (Sandbox Code Playgroud)
当我除以1000
data = data / 1000;
Run Code Online (Sandbox Code Playgroud)
它回报给我24931.191.谁能告诉我为什么?我该如何预防呢?谢谢
我有一个javascript函数适用于正数,但输入负数时它会提醒NaN:
function formatMoney(number) {
number = parseFloat(number.toString().match(/^\d+\.?\d{0,2}/));
//Seperates the components of the number
var components = (Math.floor(number * 100) / 100).toString().split(".");
//Comma-fies the first part
components [0] = components [0].replace(/\B(?=(\d{3})+(?!\d))/g, ",");
//Combines the two sections
return components.join(".");
}
alert(formatMoney(-11));
Run Code Online (Sandbox Code Playgroud)
以下是jsFiddle http://jsfiddle.net/longvu/wRYsU/中的示例
谢谢你的帮助