Hi monks,

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?


In reply to OT: complete loss of a new table by kiat

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.