473,488 Members | 2,516 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

updating all data form one table to another

Hello, I am trying to take all the data from one table and transfer it
to another table with exactly the same column names in the same
database. I have done this with a small sql script in an update query
but now can't seem to figure out how. =(
I am doing this because one of the tables is a linked table to a mysql
table and I am copying the data then deleting the original table which
is in access 2000.
Thanks for any help
steve
Nov 12 '05 #1
3 2482
On 21 Apr 2004 19:52:12 -0700, st*************@yahoo.com (steve)
wrote:

Try this:
insert into NewTable
select * from OldTable

-Tom.

Hello, I am trying to take all the data from one table and transfer it
to another table with exactly the same column names in the same
database. I have done this with a small sql script in an update query
but now can't seem to figure out how. =(
I am doing this because one of the tables is a linked table to a mysql
table and I am copying the data then deleting the original table which
is in access 2000.
Thanks for any help
steve


Nov 12 '05 #2
Ray
st*************@yahoo.com (steve) wrote in message news:<49*************************@posting.google.c om>...
Hello, I am trying to take all the data from one table and transfer it
to another table with exactly the same column names in the same
database. I have done this with a small sql script in an update query
but now can't seem to figure out how. =(
I am doing this because one of the tables is a linked table to a mysql
table and I am copying the data then deleting the original table which
is in access 2000.
Thanks for any help
steve


Hello Steve,

Perhaps you could use a "Make Table" query.

Ray
Nov 12 '05 #3
Hi Steve,
Note that if the MySQL table does not already exist, you will need to
create it, either using a pass-thru query, or some other tool to work in
MySQL. Once that's done you can use the INSERT statement posted above.

Cheers,

Eric

steve wrote:
Hello, I am trying to take all the data from one table and transfer it
to another table with exactly the same column names in the same
database. I have done this with a small sql script in an update query
but now can't seem to figure out how. =(
I am doing this because one of the tables is a linked table to a mysql
table and I am copying the data then deleting the original table which
is in access 2000.
Thanks for any help
steve

Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
16068
by: Jason | last post by:
Let's say I have an html form with 20 or 30 fields in it. The form submits the fields via POST to a php page which updates a table in a database with the $_POST vars. Which makes more sense? ...
3
2457
by: Ryan.Chowdhury | last post by:
This is a general question regarding the use of view and stored procedures. I'm fairly new to databases and SQL. I've created a SQL database using an Access Data Project ("ADP") and I'm...
4
2266
by: Laura | last post by:
Here's the situation: I'm trying to use an update query to copy data from one row to another. Here is the situation: I have 5 companies that are linked to each other. I need to show all 5...
3
12990
by: Tc | last post by:
Hi, I was curious, I am thinking of writing an application that loads a dataset from a database that resides on a server. The question I have is this, if multiple copies of the app will be...
4
1993
by: Darrel | last post by:
I'm creating a table that contains multiple records pulled out of the database. I'm building the table myself and passing it to the page since the table needs to be fairly customized (ie, a...
10
5623
by: jaYPee | last post by:
does anyone experienced slowness when updating a dataset using AcceptChanges? when calling this code it takes many seconds to update the database SqlDataAdapter1.Update(DsStudentCourse1)...
4
2360
by: Geoff | last post by:
Hi I'm hoping somebody can help me with the following problem that has occurred to me. Suppose I have two tables in an SQL Server database. Let's call these tables A and B. Assume that A has...
33
3254
by: bill | last post by:
In an application I am writing the user can define a series of steps to be followed. I save them in a sql database using the field "order" (a smallint) as the primary key. (there are in the range...
0
1286
by: C-Note | last post by:
This is a simple MS Access 2003 Project file (*.adp). It accesses a SQL Server 2005 database on the network. It has 10 tables. Everything updates, deletes, inserts, adds without a hitch, except...
2
3297
by: =?Utf-8?B?VmFuZXNzYQ==?= | last post by:
Hi All! I am with a situation where I am not getting the right updating to the form's fields. The situation is the following one: I have one combobox and one textbox. I am using the...
0
7108
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6967
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7181
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6847
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
4875
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3078
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3071
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1383
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
272
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.