开发者

How to get the substring from a String in ColdFusion

How can I get the Substring in Coldfusion?

ex:- following is the String "Update Tablename set value=something where value2=thisone"开发者_JAVA技巧

I want to get the Table name from the Str

how is it possible?

Note:- Table name is dynamic(i.e may be any charecters).

Thanks


updated:

You can probably use result = ListToArray(sql , " ") and then use the result[2]

also i believe you can do ListGetAt(sql, 2, " ")

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜