16.20 - Example: Specifying Various MERGEBLOCKRATIO Settings - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ SQL Data Definition Language Syntax and Examples

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Published
March 2019
Content Type
Programming Reference
Publication ID
B035-1144-162K
Language
English (United States)
Last Update
2019-05-24

These examples demonstrate different specifications for the MERGEBLOCKRATIO option. If the DBS Control parameter DisableMergeBlocks is set to TRUE, Teradata Database ignores the setting for this option globally and disables all data block merges for all tables in the system. See Teradata Vantage™ - Database Utilities , B035-1102 .

This example defines emp_table so that the system uses the value for the DBS Control parameter MergeBlockRatio as the merge block ratio when merging data blocks for the table.

     CREATE TABLE emp_table, DEFAULT MERGEBLOCKRATIO (
     emp_no INTEGER);

This example sets the value of the merge block ratio for emp_table to 25%.

     CREATE TABLE emp_table, MERGEBLOCKRATIO=25 PERCENT (
     emp_no INTEGER);

This example defines emp_table in a way that disables all data block merges.

     CREATE TABLE emp_table, NO MERGEBLOCKRATIO (
     emp_no INTEGER);