The ‘thread’ column in an old Drupal 4.7 Comments table is varchar(255), and I need to convert it to bigint(20) to make it work for the ‘comment_parent’ column in a WordPress wp_comments table.
I’ve tried various Cast and Convert commands I’ve seen and always get syntax errors.
This works in SQL Server:
http://sqlfiddle.com/#!6/337eb/1
For MySQL try:
Runnable MySQL sample here: http://sqlfiddle.com/#!2/6d848/9