We are passing 4 parameters to a stored procedure
@PageID,
@CompanyID,
@URL,
@URLCode,
All these parameters contains comma-separated values
Example:
@PageID contains ("1,2,3,4,5,6,7")
@CompanyID contains ("10,20,30,40,50,60,70")
@URL contains ("u1,u2,u3,u4,u5,u6,u7")
@URLCode contains ("c1,c2,c3,c4,c5,c6,c7")
In database I have one table as mentioned below:
Table name : UrlMapping
Columns:
MappingID (PK),
PageID,
CompanyID,
URL,
UrlCode
Can you suggest how can insert these multiple comma separated values in UrlMapping
table.