简体   繁体   中英

SQL SERVER - Dynamic SQL insert statement

I have a .txt file which is like screenshot attached

I need to parse the notepad and get the [cust] count and amount for different category of a,b & c and store into one table.

Here the challenge is a,b,c is not a permanent number of entity. It may add up that is a,b,c,d,e and its count & amount will come.

or decrease into a & b and its count and amount will come in some case.

How to parse the values. Any idea?

截屏

您可以使用脚本任务读取文件并生成要执行的所需输入语句。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM