Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
scripter
Starting Member
49 Posts |
Posted - 2010-06-05 : 14:25:01
|
| I have a table that looks something similar toID | ZipCode | CompanyID1 33710 22 33712 23 33713 24 33714 2CREATE PROCEDURE [dbo].[InsertUpdateContractor] @ZipCodes varchar(4000)AS BeginINSERT INTO dbo.ServiceAreas( ZipCode, CompanyID}VALUES( @ZipCode, @CompanyID )The variable of @ZipCodes should look something like whats below @ZipCodes = "33710,33756,32385,33955"How do I Insert just one of those Zipcodes at a time. So I would essentially have 4 more rows of zipcodes ? |
|
|
jezemine
Master Smack Fu Yak Hacker
2886 Posts |
|
|
|
|
|