protected void btnjb_Click(object sender, EventArgs e)
{
string aa = txtname.Text.Trim();
string str = "create table "+aa.ToString()+"(id autoincrement,uname text,email text,times datetime)";
执行
}
//ID是自动编码字段
protected void btnadd_Click(object sender, EventArgs e)
{
string aa = txtlie1.Text.Trim();
string str = "alter table baolei add column " + aa.ToString() + " int";
执行
}
protected void btndel_Click(object sender, EventArgs e)
{
string aa = txtlie2.Text.Trim();
string str = "alter table baolei drop column " + aa.ToString();
执行
}
上一篇:常用的存储过程
下一篇:SQL日期时间转为字符串
相关新闻
- 小程序登录流程图理解 2020-08-18
- 在C#中获取web.config中的配置信息 2021-08-23
- 小程序open-data头像样式 2021-04-10
- 小程序rich-text 富文本解析图片过大和图片路径的问题 2020-11-25
- C#中去掉字符串的最后一个字符 2020-11-23