1. SQL 로 넘길 dATA가 여러개 일경우 문자열로 생성하여 하나의 Parameter로 넘김
string[] arrConfirmId;
if (strConfirmId.EndsWith("│"))
strConfirmId = strConfirmId.Substring(0, strConfirmId.Length - 1);
arrConfirmId = strConfirmId.Split('│');
strConfirmId = "";
for (int iLoop = 0; iLoop < arrConfirmId.Length; iLoop++)
{
//strConfirmId += "'" + arrConfirmId[iLoop] + "',";
strConfirmId += arrConfirmId[iLoop] + ",";
}
if (strConfirmId != "")
{
if (strConfirmId.EndsWith(","))
strConfirmId = strConfirmId.Substring(0, strConfirmId.Length - 1);
이렇게 문자열로 생성하여 sql로 넘김
참조(GWAA03_Q_2.aspx)(ibDelConfirm_Click())
'Sduty > C#' 카테고리의 다른 글
DataGridView control II (0) | 2020.02.22 |
---|---|
DataGridView control I (0) | 2020.02.22 |
C#배포시 오라클client 설치없이 배포 (0) | 2017.09.15 |
DataTable 중복 (0) | 2014.03.06 |
Double Buffering선언 (0) | 2014.02.03 |