开发者

How to get the substring from a String in ColdFusion

开发者 https://www.devze.com 2022-12-09 16:15 出处:网络
How can I get the Substring in Coldfusion? ex:- following is the String \"Update Tablenameset value=something where value2=thisone\"开发者_JAVA技巧

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

精彩评论

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