代码如下://必须的命名空间using System;using System.Data;using System.Data.SqlClient;//中间常规内容略string tabName = “table1”;//声明要创建的表名,你也可以改为从textbox中获取;string sqlStr = “create table “;sqlStr += tabName + “( “;sqlStr += “col0 numeric identity(1,1) primary key,”;//co