代码新建二维表

代码新建二维表
#region "建立Judgement結構"
                string[,] Colstr ={ {"JudgementID","System.String"},
                                                    {"JudgementName","System.String"}};
                DataTable dtl = Function.CreatDataTable(Colstr, "Judgement");
                #endregion

                #region "填入Judgement內容"
                string[,] strContent ={{"1","Acceptable"},
                                                            {"2","Conditional (重工後允收)"},
                                                            {"3","Waive (特裁)"},
                                                            {"4","Reject"}};
                for (int j = 0; j < strContent.Length / 2; j++)
                {
                    DataRow dr = dtl.NewRow();
                    for (int i = 0; i < 2; i++)
                    {
                        dr[i] = strContent[j, i];
                    }
                    dtl.Rows.Add(dr);
                    dr = null;
                }
                #endregion

                return dtl;
代码新建二维表

代码新建二维表

上一篇:final方法,abstract方法和abstract类,native方法


下一篇:HIVE中内连接和左半连接不一致问题