2017-07-19 23 views
0

我有應該創造一個畫面提取使用十進制類型(10,5)的具有SQL Server表列,因此在創建提取SQL在tablueau中的等效小數?

if(colType.startsWith("decimal")){ 
        tableDef.addColumn(colName, Type.CHAR_STRING);// what is the type i should use here? 
       } 

row.setInteger(j, (int) rowData.get(j));//what is the method to set a decimal value? 

回答

0

我想的Tableau只是有號碼作爲數據類型,至少我在UI中看到的就是這些。

通過選擇'格式'和計算中使用ROUND(num,precision),可以在顯示中設置精度(在你的情況5)。