Access Multiple Insert

INSERT INTO PERSONDATA (LastName,FirstName,Adres1,Adres2,City,State,Zip)
    SELECT z.LastName,z.FirstName,z.Adres1,z.Adres2,z.City,z.State,z.Zip FROM (
    SELECT   TOP 1  “31” as LastName,”2″ as FirstName,”3″ as  Adres1,”4″ as  Adres2,”5″ as City,”6″ as State,”7″ as Zip  from persondata
    union
    SELECT   TOP 1  “231” as LastName,”2″ as FirstName,”3″ as  Adres1,”4″ as Adres2,”5″ as City,”6″ as State,”7″ as Zip  from persondata) z
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: