110,571
社区成员
发帖
与我相关
我的任务
分享
private void button1_Click(object sender, EventArgs e)
{
OleDbConnection con=new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\\users.mdb");
string create="create table "+textBox1.Text+"(时间 datetime not null primary key,天气 char(12),内容 vchar(200))";
OleDbCommand sql = new OleDbCommand(create, con);
con.Open();
con.Close();
}
string create="create table ["+textBox1.Text+"] (时间 datetime not null primary key,天气 char(12),内容 varchar(200))";