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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.