我在ASP.NET中插入值时如何添加新列 [英] How to add new columns while i am inserting the values in ASP.NET

查看:67
本文介绍了我在ASP.NET中插入值时如何添加新列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



当我向表中插入值时,同时我想使用asp.net在另一个表中添加一个新列.

Hi,

When i insert a values into table, at the same time i want to Add one new column in another table using asp.net.

How to do this...?

推荐答案

您可以使用alter table命令在表中添加列.
You can use alter table command to add column in table.


嘿!当我想要在X表中插入值时,要同时更新Y表中的列.它的意思是如果要执行多个查询,则可以使用事务执行多个查询.
TransactionScope类[
hey! as I getting you want to Insert values in X table where as want to update Columns at Y table at Same time. its means you are going to execute multiple query if so then you can use Transactions to execute multiple query.
TransactionScope Class[^]


这篇关于我在ASP.NET中插入值时如何添加新列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆