i need to convert one field of mysql from text to varchar(1000) for preventing it create tmp table on disk. but there are many records has over 1000 in length. the field name hometext. in table have other field name bodytext ( text type)
Now i thinking of move the end part of string to the other field name "bodytext" before convert it. read field hometext and cut from char number 999 to the end in to 2 part A, B read field bodytext in to part C
edit the table in put it back part A to hometext and add part B + C put in to bodytext
i dont have much knowlege about php and mysql so could anyone help
thanks very much
=Sample_Table before
field_hometext:
1aaaaa bbbbbbbdd
2aaa bbbbbbb
field_bodytext:
1ccccc
2cccc
====================================================================
= Sample_Table affter cut and move all chars longer than 8 char of all records from field_hometext to field_bodytext
field_hometext:
1aaaaa b
2aaa bbb
field_bodytext:
bbbbbbdd 1ccccc
bbbb 2cccc
thanks for any help