Unsupported Screen Size: The viewport size is too small for the theme to render properly.

Truncate db / table incorrect

forums forums SQLyog SQLyog: Bugs / Feature Requests Truncate db / table incorrect

  • This topic is empty.
Viewing 1 reply thread
  • Author
    Posts
    • #14078
      webRat
      Member

      FYI: http://www.mysql.com/doc/en/TRUNCATE.html

      Quote:
      syntax: TRUNCATE TABLE table_name

      TRUNCATE TABLE differs from DELETE FROM … in the following ways:

      * Truncate operations drop and re-create the table, which is much faster than deleting rows one by one.

      * Not transaction-safe; you will get an error if you have an active transaction or an active table lock.

      * Doesn't return the number of deleted rows.

      * As long as the table definition file `table_name.frm' is valid, the table can be re-created this way, even if the data or index files have become corrupted.

      TRUNCATE is an Oracle SQL extension.

    • #14079
      Ritesh
      Member

      Hmmmmmmmmmm….

      Thanks for the information 😀

Viewing 1 reply thread
  • You must be logged in to reply to this topic.