小编Lon*_* Vu的帖子

如何将MySQL数据库结构导出到Excel文件?

有没有工具将MySQL数据库结构导出到Excel文件?例如:

1   ID  int(10)  not null  pri   0  index   comment
Run Code Online (Sandbox Code Playgroud)

谢谢你的帮助.

mysql excel

7
推荐指数
3
解决办法
1万
查看次数

除以浮点数1000时丢失的数据

我漂浮着

float data = 24931192;
Run Code Online (Sandbox Code Playgroud)

当我除以1000

data = data / 1000;
Run Code Online (Sandbox Code Playgroud)

它回报给我24931.191.谁能告诉我为什么?我该如何预防呢?谢谢

java

4
推荐指数
1
解决办法
429
查看次数

格式化负数的钱

我有一个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/中的示例

谢谢你的帮助

javascript

1
推荐指数
1
解决办法
3819
查看次数

标签 统计

excel ×1

java ×1

javascript ×1

mysql ×1