Extracting dollar amounts from existing sql data?

前端 未结 2 932
执笔经年
执笔经年 2020-12-20 08:49

I have a field with that contains a mix of descriptions and dollar amounts. With TSQL, I would like to extract those dollar amounts, then insert them into a new field for t

2条回答
  •  没有蜡笔的小新
    2020-12-20 09:50

    This link should help.

    http://blogs.lessthandot.com/index.php/DataMgmt/DataDesign/extracting-numbers-with-sql-server

    Assuming you are OK with extracting the numeric's, regardless of wether or not there is a $ sign. If that is a strict requirement, some mods will be needed.

提交回复
热议问题