Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pass through query from access to Mysql

Status
Not open for further replies.

doddo

Programmer
Feb 14, 2001
37
0
0
GB
Hi, i'm trying to run a pass through query that appends a table in my SQL db from an access 95 table on a client.

Please could you tell me why I get the following syntax error?

insert into Ph_ABP.Member_ID
select Member_ID from c:\Windows\Desktop\db1.ABP

I have the MyODBC set up correctly as far as i am aware as it lets me pull tables down into access using the 'select' command

any help appreciated,
cheers
 
You cannot do this because you are trying to select from a table that does not belong to mysql at all. This is a mysql command regarding mysql tables from mysql databases.
I think that you should read the documentation about the 6.4.8 LOAD DATA INFILE Syntax. This should help you get the data in the mysql database quickly. I have tried other methods and I could not find another one as fast as this one.

Let me know if it helped, ok!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top