当前位置: 动力学知识库 > 问答 > 编程问答 >

coldfusion - Dynamically adding column

问题描述:

Sometimes I need to add a column to an empty table

if (listfind(arguments.config[3], "payout")) {

QueryAddColumn(local.qryResult, "payout", "cf_sql_float");

}

I get an error that looks like

It seems to want a java.util.List

Isn't "cf_sql_float" a single element list?

网友答案:

The documentation is your guide. You need an array name. I always use arrayNew(). This should do the trick.

QueryAddColumn(local.qryResult, "payout", "cf_sql_double", arrayNew(1));
分享给朋友:
您可能感兴趣的文章:
随机阅读: