kiat has asked for the wisdom of the Perl Monks concerning the following question:
This has nothing to do with perl but with MySQL. Please bear with me :)
I created a new table yesterday and inserted some values from an old table to the new table (on a live server but it was unlikely for anybody to access the site during that time). The syntax used was:
INSERT INTO new_table (col1, col2) SELECT col1, col2 FROM old_table;
I did a SHOW TABLES and DESCRIBE new_table and verified that the new table was created and the values were inserted correctly.
I then accessed a page from the browser and everything looked fine - this page pulled out values from the new table.
Then I modified the specs of two columns of the new_table (I had done this before without problems). I didn't get any errors with the modifications.
After that, I accessed the page again from the broswer. This time round, the sql select didn't work. Curious, I did a SHOW TABLES and to my surprise, the new table was gone.
What could have happened? Have you encountered this sort of things before?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: OT: complete loss of a new table
by tachyon (Chancellor) on Oct 08, 2004 at 03:27 UTC | |
by kiat (Vicar) on Oct 08, 2004 at 03:38 UTC | |
by tachyon (Chancellor) on Oct 08, 2004 at 03:55 UTC | |
by kiat (Vicar) on Oct 08, 2004 at 04:02 UTC | |
by tachyon (Chancellor) on Oct 08, 2004 at 04:24 UTC | |
| |
|
Re: OT: complete loss of a new table
by Anonymous Monk on Oct 08, 2004 at 08:23 UTC | |
by kiat (Vicar) on Oct 08, 2004 at 12:52 UTC | |
|
Re: OT: complete loss of a new table
by dorko (Prior) on Oct 08, 2004 at 14:52 UTC | |
by kiat (Vicar) on Oct 08, 2004 at 15:53 UTC | |
|
Re: OT: complete loss of a new table
by Plankton (Vicar) on Oct 08, 2004 at 16:36 UTC |