Forum Moderators: coopster

Message Too Old, No Replies

MySQL problem: field named 'check' causing problem

         

doc_z

4:46 pm on Sep 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



A PHP script which run without any problem for a long time is causing a problem. I found out that the error is caused by a field name in the MySQL data base which is named 'check'. To solve this problem I tried to rename this field with "ALTER TABLE ABC CHANGE check ..." but it doesn't work (due to the field name 'check').

How can I rename a field which is named 'check' or are there other ways to fix the problem?

It seems that my provider changed the MySQL version which leads to this problem.

coopster

5:23 pm on Sep 1, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Try prefixing the column name with the table name:
"ALTER TABLE ABC CHANGE ABC.check ..."

doc_z

5:27 pm on Sep 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



It works.

Thanks.