Trying to dynamically create a string in the WHERE clause of a SQL statement:
lets call the table 'tbl_example', column is called 'data_id'. Here's the data, 4 lines:
DATA_ID
1111
2222
3333
4444
turn this data into a string so I can assign it to a variable and plug it into a SQL statement - looking like this:
'1111','2222','3333','4444'
lets call the table 'tbl_example', column is called 'data_id'. Here's the data, 4 lines:
DATA_ID
1111
2222
3333
4444
turn this data into a string so I can assign it to a variable and plug it into a SQL statement - looking like this:
'1111','2222','3333','4444'