|
-
Dec 8th, 2001, 02:34 PM
#1
Thread Starter
Member
Updating multi tables
Friends,
I'm looking for a way to update the multi tables with an sql statement with an condition
Set connRE = Server.CreateObject("ADODB.Connection")
myDSN="DSN=DNS;User Id=user;password=password"
connRe.Open myDSN
sqltemp= "Insert into table1 (field1, field2) values(value1, values)
//lost right here
//If value not in table 2 than insert the field into the table.
insert into table2(field1, field2) values(value1, values)
set rstemp=connRE.execute(sqltemp)
set rstemp=nothing
connRE.close
set connRE=nothing
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|