Skip to main content

Posts

Showing posts with the label Table Properties in mysql

Table Properties

MySQL manages tables using storage engines, each of which handles tables that have a given set of characteristics. Different storage engines have differing performance characteristics, and can be chosen based on which engine most closely matches the char acteristics that are needed. For example, a table may require transactional capabilities and guaranteed data in tegrity even if a crash occurs, or it may require a very fast lookup table stored in memory for which the contents can be lost in a crash and reloaded at the next server startup.  With MySQL, these choices can be made on a per-table basis. Any given table is managed by a particular storage engine. Options can be added to the CREATE TABLE  command in order to control the manner in which the entire table is handled. ENGINE={MyISAM | InnoDB | MEMORY}   Indicates the storage engine to be used for the table  MyISAM is the default storage engine (unless --default-storage-engine has been set) COMMENT='<comme

MANAGING DATABASE TABLES

Table Properties           The heart of any database is the tables, because the tables contain the data that is used to provide information  to the end users.  Tables are contained in databases, and in MySQL each database has an associated "data  directory" to store all the physical components of the database, to include tables.  This physical  representation on disk of the tables  is dependent on the type of storage engine that the table is utilizing;  however, every table, no matter of the type of storage engine that is being used, contains a format file  (table_name.frm) which describes the table definition and structure.              In addition to the physical representation of the table, there is also the better known logical aspect of the  table. This logical aspect is represented in rows and columns.  Rows within a table, consist of a collection of  values that describe an entity (ex. an employee).  Columns within a table, consist of a collection of similar  dat