Inserting records into 2 identical fields at once (???)

C

Chumley the Walrus

I want to insert records into two tables with identical fields at
once, the below sql string is giving me an error at the comma " , "
between tblProline and Prolinebup, the 2 tables i want to insert into:

''''
Insert into tblProline,Prolinebup (showdate, hand1, elements1) values
(@showdate, @hand1, @elements1)

'''''


????
chumley
 
M

Mark Rae

I want to insert records into two tables with identical fields at
once, the below sql string is giving me an error at the comma " , "
between tblProline and Prolinebup, the 2 tables i want to insert into:

''''
Insert into tblProline,Prolinebup (showdate, hand1, elements1) values
(@showdate, @hand1, @elements1)

I'm not surprised! Change your SQL to the following:

Insert into tblProline (showdate, hand1, elements1) values (@showdate,
@hand1, @elements1)
Insert into Prolinebup (showdate, hand1, elements1) values (@showdate,
@hand1, @elements1)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top