I have a datatable who has two column with values as below
NO NAME
1 A
2 B
3 C
4 D
So what I want ONLY NAME values in a string with comma separated and single quoted like below
string names= 'A','B','C','D'
How will I get input as an sql query
example : "select names in ('A','B','C','D')";
how to add single quotes? i may have 100 data


Srinivasan RamamoorthiRank #877 · 2.5K reputationPosted Nov 24, 2021, 12:52 AM EST
Try this one
Anoop Kumar SharmaRank #127 · 17.4K reputationPosted Nov 23, 2021, 11:16 AM EST
Jignesh KumarRank #91 · 22.9K reputationPosted Nov 23, 2021, 11:18 AM EST
Hi,
Please use below code,
Vikas PanwarRank #1,447 · 1.1K reputationPosted Nov 23, 2021, 11:55 PM EST