If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > 2 transactions in one time

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-16-04, 04:22
ayu ayu is offline
Registered User
 
Join Date: Apr 2004
Location: Malaysia
Posts: 25
2 transactions in one time

Can somebody help me...

My senario is i open a page and retrieve data from Table B. Then when I click button Go, 2 transactions i is giong on. one is insert the data in Table A. After insert then I want to delete the data I retrieve from Table B

Please .....
Reply With Quote
  #2 (permalink)  
Old 04-16-04, 09:09
rhs98 rhs98 is offline
Super Moderator
 
Join Date: Feb 2002
Location: Hampshire, UK
Posts: 441
So whats the problem?
Reply With Quote
  #3 (permalink)  
Old 04-18-04, 23:02
ayu ayu is offline
Registered User
 
Join Date: Apr 2004
Location: Malaysia
Posts: 25
Quote:
Originally posted by rhs98
So whats the problem?
There is an error when i want to do the 2 transaction using dreamweaver coding. It seen that i cannot did 2 transaction in one time.
Reply With Quote
  #4 (permalink)  
Old 04-19-04, 04:20
rhs98 rhs98 is offline
Super Moderator
 
Join Date: Feb 2002
Location: Hampshire, UK
Posts: 441
right so basically you want to insert two records at the same time?

if so this is easy - just do both in one command. Seperate them as per your database. e.g. postgres;
Code:
insert into x (x,y,z) values (1,2,3);
insert into x (x,y,z) values (1,2,3);
do this all in one statement. You may have to hand code it if dreamweaver does not allow it.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On