-2

I want multiple column data inn single string variable ,I tried But I only get Single column Data,What should I do.here Is my coding ImageAnd my query is"select PRODUCT_ID_LIST from ORDERS where USER_ID=?" and code iamge is here

my table image is here

I want is that the whole column values in string and then string will be split by comma. I have split code.

Yogesh Raut
  • 5
  • 1
  • 6

2 Answers2

0

Very old thread but if I understood correctly, I hope we have a possible situation and at the same time solution too at this existing thread. - stackoverflow

Ajay Kumar
  • 2,906
  • 3
  • 23
  • 46
-1

Not sure I fully understand what you need, but look up the SQL CONCAT(...) function. It will depend on your database though if it is supported.

Glstunna
  • 1,993
  • 3
  • 18
  • 27