Jump to content

Transferring data from one table to another? *EDITED*


Far Cry

Recommended Posts

Yes it is possible, have you tried? what are the structures of the two tables?

users table

 

id

first_name

last_name

gender

username

email

password

avatar

bio

month

day

year

invitational

last_login

active

code

locked

date

ip

online

 

Status table

 

 

id bigint(20)

username

status

status_date

Link to comment
Share on other sites

Usually the order of doing this is:-

 

SELECT FROM table1<--On success of this instruction Proceed to the next

INSERT INTO table2<-- On success of this instruction, optionally do the next, but it is good house keeping...

DELETE FROM table1<--On completion of the above, you can display a nice little message to screen

 

This is kinda a pseudo way of doing a MOVE as there isn't a specific 'MOVE' command that I have found.

 

Hope that makes sense.

 

Rw

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.