Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Basic SQL query question
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Xmas  
View profile  
 More options Nov 8, 12:20 am
Newsgroups: microsoft.public.access, microsoft.public.access.adp.sqlserver
From: Xmas <m...@privacy.net>
Date: Sat, 7 Nov 2009 13:20:09 -0000
Local: Sun, Nov 8 2009 12:20 am
Subject: Basic SQL query question
Hi

I am new to using Access but have a background in SQL.  I can get
queries running using simple SQL statements with no problem, but you can
only use one SQL statement per query (or so it seems)

I want to instantiate a table from an SELECT INTO and then use INSERT
INTO to add more rows.  Is there a way to do that in a single query?

Thanks


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rick_brandt@charter.net  
View profile  
 More options Nov 8, 12:25 am
Newsgroups: microsoft.public.access, microsoft.public.access.adp.sqlserver
From: "rick_bra...@charter.net" <rick_bra...@charter.net>
Date: Sat, 7 Nov 2009 13:25:39 +0000 (UTC)
Local: Sun, Nov 8 2009 12:25 am
Subject: Re: Basic SQL query question

Xmas wrote:
> Hi

> I am new to using Access but have a background in SQL.  I can get
> queries running using simple SQL statements with no problem, but you can
> only use one SQL statement per query (or so it seems)

> I want to instantiate a table from an SELECT INTO and then use INSERT
> INTO to add more rows.  Is there a way to do that in a single query?

Access doesn't "do" multiple SQL statements.  The closest thing is to
use VBA code to execute each statement.

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John W. Vinson  
View profile  
 More options Nov 8, 5:33 am
Newsgroups: microsoft.public.access, microsoft.public.access.adp.sqlserver
From: John W. Vinson <jvinson@STOP_SPAM.WysardOfInfo.com>
Date: Sat, 07 Nov 2009 11:33:25 -0700
Local: Sun, Nov 8 2009 5:33 am
Subject: Re: Basic SQL query question

On Sat, 7 Nov 2009 13:20:09 -0000, Xmas <m...@privacy.net> wrote:
>Hi

>I am new to using Access but have a background in SQL.  I can get
>queries running using simple SQL statements with no problem, but you can
>only use one SQL statement per query (or so it seems)

That is correct. One of several tricky "dialect" differences (another is that
Access/JET/ACE uses * and ? as wildcards instead of % and _).

>I want to instantiate a table from an SELECT INTO and then use INSERT
>INTO to add more rows.  Is there a way to do that in a single query?

No. You can call multiple queries in sequence from a Macro or from VBA code,
though; or (depending on the nature of these queries) base a SELECT INTO on a
UNION query.

--

             John W. Vinson [MVP]


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
RoyVidar  
View profile  
 More options Nov 8, 6:03 am
Newsgroups: microsoft.public.access, microsoft.public.access.adp.sqlserver
From: RoyVidar <roy_vidarNOS...@yahoo.no>
Date: Sat, 07 Nov 2009 20:03:23 +0100
Local: Sun, Nov 8 2009 6:03 am
Subject: Re: Basic SQL query question

John W. Vinson wrote:

> That is correct. One of several tricky "dialect" differences (another
> is that Access/JET/ACE uses * and ? as wildcards instead of % and _).

For the interface, that is true, for Access/JET/ACE, unless you check
the SQL Server Compatible Syntax (ANSI 92), which will require % and _.

For data manipulation through code, I think it will depend on method,
or Library. With DAO I think you'll use * and ?, while with ADO, you
need % or _ .

--
Roy-Vidar


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Shoehey Muta  
View profile  
 More options Nov 9, 4:27 am
Newsgroups: microsoft.public.access, microsoft.public.access.adp.sqlserver
From: "Shoehey Muta" <am...@cableone.ne.jp>
Date: Mon, 9 Nov 2009 02:27:57 +0900
Local: Mon, Nov 9 2009 4:27 am
Subject: Re: Basic SQL query question
sorry.
"John W. Vinson" <jvinson@STOP_SPAM.WysardOfInfo.com> wrote in message
news:c8fbf5ljkpa6jt11i40gl3s2kvdbrludlt@4ax.com...


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google