Re: Copying data stored in different field formats from one table to another [PARTIALLY SOLVED]

2005-09-12 Thread Dave
While the basic issue of correct syntax is still open, this issue has boiled down to a specific error message, so I've moved to a new thread called: ""Operand should contain 1 column" error" However, for future reference, the issue of variables has been solved. I discovered that to make the

Re: Copying data stored in different field formats from one table to another

2005-09-12 Thread Dave
SET collation_connection = utf8_general_ci; on my server (4.1.14) and it seems to work I made a new Query, copying the text as you wrote it, and it still didn't work, but in a different way. I type: SET collation_connection = utf8_general_ci; ... and I get the following returned to me: Your

Re: Copying data stored in different field formats from one table to another

2005-09-12 Thread Johan Höök
Dave, I've tried SET collation_connection = utf8_general_ci; on my server (4.1.14) and it seems to work so I'm afraid I can't help you anymore there. /Johan Dave wrote: My hunch here is that your ' ' in the CONCAT_WS defaults to latin1_swedish_ci. It seems you're right. There are a few var

Re: Copying data stored in different field formats from one table to another

2005-09-12 Thread Dave
My hunch here is that your ' ' in the CONCAT_WS defaults to latin1_swedish_ci. It seems you're right. There are a few variables that are still in default mode which I discovered through the SHOW VARIABLES command. I've tried to switch them, but I'm obviously using the syntax incorrectly. I

Re: Copying data stored in different field formats from one table to another

2005-09-12 Thread Johan Höök
Dave, I'm not that good when it comes to collations but latin1_swedish_ci is normally the default collation for a MySQL installation. Have you checked via "SHOW VARIABLES" that you don't have latin1_swedish_ci lurking somewhere. My hunch here is that your ' ' in the CONCAT_WS defaults to latin1_sw

Re: Copying data stored in different field formats from one table to another

2005-09-12 Thread Gleb Paharenko
Hello. >After reading through the MySQL manuals, as suggested here, I attempted >to construct the following statement to copy data from the table "members" >to the table "forum_members": Please, keep your answers on the list. Use INSERT ... SELECT. Don't put the functions in the column lis

Re: Copying data stored in different field formats from one table to another

2005-09-12 Thread Dave
I think your problem is that you're trying to call one of your columns MD5(passwd) Thank you for pointing that out. I had the function in the wrong part of the statement. Actually, I've realized I'm probably best off to leave the passwords alone for now, and go ahead and copy the rest of th

Re: Copying data stored in different field formats from one table to another

2005-09-12 Thread Johan Höök
Hi Dave, I think your problem is that you're trying to call one of your columns MD5(passwd) and my guess would be that you should do: INSERT INTO forum_members( passwd, dateRegistered, realName, ID_MEMBER, memberName, emailAddress, active, keitai, number, admin, cardpic, cardbio, hofpic, hofbio

Re: Copying data stored in different field formats from one table to another

2005-09-12 Thread Dave
After reading through the MySQL manuals, as suggested here, I attempted to construct the following statement to copy data from the table "members" to the table "forum_members": INSERT INTO forum_members( MD5(passwd) , dateRegistered, realName, ID_MEMBER, memberName, emailAddress, active, kei

Re: Copying data stored in different field formats from one table to another

2005-09-08 Thread Gleb Paharenko
Hello. This is not a step by step instructions. But taking into an account that you're a MySQL beginner, in my opinion, you should read some parts of the manual: http://dev.mysql.com/doc/mysql/en/string-functions.html http://dev.mysql.com/doc/mysql/en/insert-select.html ht

Copying data stored in different field formats from one table to another

2005-09-08 Thread Dave
MySQL General List, Server specifications: MySQL 4.1.3-beta, phpMyAdmin 2.5.7-pl1, PHP 4.3.8 My specifications: MySQL beginner, PHP intermediate, HTML and CSS advanced. The situation: I have recently installed a forum ( http://www.simplemachines.org/ ) on my web site. I alread