asp連接access數(shù)據(jù)庫 如果通過ASP將一條記錄同時向兩個ACCESS數(shù)據(jù)庫表插入?
如果通過ASP將一條記錄同時向兩個ACCESS數(shù)據(jù)庫表插入?set rs=server.createobject("adodb.recordset")sql="select * from 表" rs.
如果通過ASP將一條記錄同時向兩個ACCESS數(shù)據(jù)庫表插入?
set rs=server.createobject("adodb.recordset")sql="select * from 表" rs.open sql,conn,1,3rs.addnewrs("name")=request.form("name")rs.updaters.closeset rs=nothingset rsy=server.createobject("adodb.recordset")sql="select * from 表" rsy.open sql,conn,1,3rsy.addnewrsy("name")=request.form("name")rsy.update不知道這樣行不行/自己試試
怎么將一條記錄添加到同一數(shù)據(jù)庫的兩個表中C# ASP.NET?
用:update 表名 set a=c where c is not null即可。update 表名 set 列名=想改的值例子: 數(shù)據(jù)庫表 Card 中的某列名為date ,列中的數(shù)據(jù)都不相同,把這一列的所有數(shù)據(jù)都改為2013擴展資料:SQL中新增列或者說添加字段的語法:alter table 表名 add 列名 數(shù)據(jù)類型二、例如:在表texttable中添加一列字符型字段colnew:alter table texttable add colnew char(20)三、添加的新列,默認值為空值NULL。需要根據(jù)需求使用SQL語句更改1、SQL修改列的語法:update 表名 set 字段 = 賦值 where字句(確定要修改的列)2、實例:update texttable set colnew = "temp"--把所有行的 colnew列的值改為 "temp"update texttable set colnew = "temp" where id=1000 --把ID為1000的行 colnew列的值改為 "temp"