Product consist of at least 1 or more articles. Nummer consist of 3-parts separated by dots (always). The one which always appears is always with .1 at the end (main article). For all articles belongs to product their vater is always the main article.
Example product consist of main article and additionally with combinations
Nummer Vater 12.1001.1 (main article) 12.1001.1 12.1001.2 (combination) 12.1001.1 12.1001.8L (combination) 12.1001.1
Example of 3 products below:
Nummer Vater 12.1001.1 12.1001.1 12.1001.2L 12.1001.1 03.999.1 03.999.1 12.1001.10R 12.1001.1 03.999.3 03.999.1 786.2892.1 786.2892.1 786.2892.4 786.2892.1
I want to give user possibility to select one article (main article) and change second part of it. The change should be reflected to entire product articles and their vaters. According to our example let’s assume user wants to change article:
03.999.1 999 --> 1001
this means at the end only those records should be changed as below:
03.1001.1 03.1001.1 03.1001.3 03.1001.1
My current sql presents like this and seems its working. Could you tell me whether it’s really fine and do not ovverwrite something else?:
Values i pass to query are:
oldNummer = 03.999.1 newNummer = 03.1001.1 oldNummerWithout1 = 03.999. newNummerWithout1 = 03.1001. UPDATE temp SET Nummer = replace(Nummer, @oldNummerWithout1, @newNummerWithout1), Vater = replace(Vater, @oldNummer, @newNummer) WHERE Vater = @oldNummer", transaction.Connection)
Have lot products in db and want to be sure this is really just enough. Awaiting your feedback as an answer.
✓ Extra quality
ExtraProxies brings the best proxy quality for you with our private and reliable proxies
✓ Extra anonymity
Top level of anonymity and 100% safe proxies – this is what you get with every proxy package
✓ Extra speed
1,ooo mb/s proxy servers speed – we are way better than others – just enjoy our proxies!
USA proxy location
We offer premium quality USA private proxies – the most essential proxies you can ever want from USA
Our proxies have TOP level of anonymity + Elite quality, so you are always safe and secure with your proxies
Use your proxies as much as you want – we have no limits for data transfer and bandwidth, unlimited usage!
Superb fast proxy servers with 1,000 mb/s speed – sit back and enjoy your lightning fast private proxies!
99,9% servers uptime
Alive and working proxies all the time – we are taking care of our servers so you can use them without any problems
No usage restrictions
You have freedom to use your proxies with every software, browser or website you want without restrictions
Perfect for SEO
We are 100% friendly with all SEO tasks as well as internet marketing – feel the power with our proxies
Buy more proxies and get better price – we offer various proxy packages with great deals and discounts
We are working 24/7 to bring the best proxy experience for you – we are glad to help and assist you!