sql - how to insert multiple values in one field? -


i have query:

    insert i#journal   (     type_,     mndnr,     obj,     status,     reason   )   values   (     'po',     '0177',     '000222',     'new',     '1'   ) 

this 1 works ok. instead of '1' want insert multiple values in 1 field, '1','2','3'

and this:

insert i#journal   (     type_,     mndnr,     obj,     status,     reason   )   values   (     'po',     '0177',     '000222e',     'new',     '1,2,3'   ) 

but how if values put there '1','2','3'?

insert i#journal   (     type_,     mndnr,     obj,     status,     reason   )   values   (     'po',     '0177',     '000222e',     'new',     '1','2','3'   ) 

so, can't change '1','2','3' (due of automation) can add before , past string. in result information in reason field should 1,2,3

how that?

try:

insert i#journal   (     type_,     mndnr,     obj,     status,     reason   )   values   (     'po',     '0177',     '000222e',     'new',     replace(q'['1','2','3']', q'[',']', '')  ) 

Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -