Quantcast
Channel: SQL Query - Insert multiple values from listbox into one column in database
Viewing all articles
Browse latest Browse all 11

SQL Query - Insert multiple values from listbox into one column in database

$
0
0

Hi guys, as i have stated in the title, how do i go about doing this? What i would like to display in the database would be like this:

ModCode      |       Relatedmodules
IT123             |      IT2222, IT333, IT555 (data from listbox)

 I have searched examples online but they are using fixed values, whereas my data are from the listbox. An example i found online was something like this:

insert into test (col1,col2) values
('ovais',''''+'abc'+''''+','+''''+'123'+''''+','+' '''+'def'+'''' )


 


Viewing all articles
Browse latest Browse all 11

Latest Images

Trending Articles





Latest Images