Jump to content

Moving db colums to a different table


smith.james0

Recommended Posts

James, If you have phpMyAdmin, select the table you want to move/copy, select Operations on the top, go to Copy table to (database.table): select the database you would like it to be copied to, type in the name of the table, make sure you have structure and data selected and push go!

If you don't have phpMyAdmin, either install it or let me know and I can give you the sql query.

hope this helped,
-Chris
Link to comment
Share on other sites

[quote author=smith.james0 link=topic=99806.msg393225#msg393225 date=1152295491]
Second question If i change the column type will it keep all the date? (varchar(200) change to int(5,2))
[/quote]

valid integer values should be retained. What is int(5,2)?
Link to comment
Share on other sites

[quote author=Barand link=topic=99806.msg393477#msg393477 date=1152349816]
[quote author=smith.james0 link=topic=99806.msg393225#msg393225 date=1152295491]
Second question If i change the column type will it keep all the date? (varchar(200) change to int(5,2))
[/quote]

valid integer values should be retained. What is int(5,2)?
[/quote]

I believe int(5,2) would be an integer of that is 5 characters long with 2 decimals - but then it's a float and not an integer :S ???
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.