proc inList { inTermsList } {set inStr ""foreach t $inTermsList {if { $inStr ne "" } {append inStr ,}append inStr \'$t\'}return $inStr}
set mdIdList [list 12345 67890 00324]set cmpColumn crmcMdIdset mdInfo [$dbHandle eval “select crmcMdId,npi,groupName,namePrefix,nameFirst,nameMid,nameLast,nameSuffix from providers where $cmpColumn in ([inList $mdIdList])”]