This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
admin:indexing:text:clob [2011/03/02 18:37] 127.0.0.1 external edit |
admin:indexing:text:clob [2012/10/26 14:57] (current) |
||
|---|---|---|---|
| Line 17: | Line 17: | ||
| ==== Textual Datatypes ==== | ==== Textual Datatypes ==== | ||
| - | Databases generally store text in character columns or in variable character columns (often called VARCHAR columns). These datatypes are good for storing smaller amounts of text, such as names, addresses and short descriptions. These datatypes are often limited in size, though. For larger amounts of text, a database may employ special datatypes designed specifically for this purpose. As examples, Oracle provides a CLOB (Character Large Object) datatype and SQL Server provides a TEXT datatype. These datatypes can often store up to 2-4 gigabytes of text. | + | Databases generally store text in character columns or in variable character columns (often called VARCHAR columns). These datatypes are good for storing smaller amounts of text, such as names, addresses and short descriptions. These datatypes are often limited in size, however. For larger amounts of text, a database may employ special datatypes designed specifically for this purpose. As examples, Oracle provides a CLOB (Character Large Object) datatype and SQL Server provides a TEXT datatype. These datatypes can often store up to 2-4 gigabytes of text. |
| - | Omnidex recommends storing text in either CHARACTER or STRING datatypes. These are the simplest datatypes to use and provide great flexibility. Omnidex also supports VARCHAR and CLOB dataypes, but these datatypes are more difficulty to use and are more restricted. For most applications, the STRING datatype will be preferred since it allows null-terminated data up to 16 MB. | + | Omnidex recommends storing text in either CHARACTER or STRING datatypes. These are the simplest datatypes to use and provide great flexibility. Omnidex also supports VARCHAR and CLOB dataypes, but these datatypes are more difficult to use and are more restricted. For most applications, the STRING datatype will be preferred since it allows null-terminated data up to 16 MB. |
| Line 33: | Line 33: | ||
| The textual datatypes have different characteristics and have different restrictions within Omnidex SQL. The following table shows the capabilities of each datatype. | The textual datatypes have different characteristics and have different restrictions within Omnidex SQL. The following table shows the capabilities of each datatype. | ||
| + | |< 80% 40% 15% 15% 15% 15% >| | ||
| ^Characteristics ^ CHARACTER ^ STRING ^ VARCHAR ^ CLOB ^ | ^Characteristics ^ CHARACTER ^ STRING ^ VARCHAR ^ CLOB ^ | ||
| |\\ **Datatype Characteristics** ||||| | |\\ **Datatype Characteristics** ||||| | ||
| Line 49: | Line 49: | ||
| |Select item of set operation | Yes | Yes | Yes | Yes | | |Select item of set operation | Yes | Yes | Yes | Yes | | ||
| |Table joins | Yes | Yes | Yes | No | | |Table joins | Yes | Yes | Yes | No | | ||
| - | |WHERE clause | Yes | Yes | Yes | Limited <sup>1</sup> | | + | |WHERE clause | Yes | Yes | Yes | Limited <sup>1</sup> | |
| |GROUP BY clause | Yes | Yes | Yes | No | | |GROUP BY clause | Yes | Yes | Yes | No | | ||
| |ORDER BY clause | Yes | Yes | Yes | No | | |ORDER BY clause | Yes | Yes | Yes | No | | ||
| Line 58: | Line 58: | ||
| |\\ **Update Characteristics** ||||| | |\\ **Update Characteristics** ||||| | ||
| |Inserts, updates and deletes | Yes | Yes | Yes | No | | |Inserts, updates and deletes | Yes | Yes | Yes | No | | ||
| - | |--------------------------------------------------------------------------|----------------|----------------|----------------|----------------| | ||
| <sup>1. Limited to use of LIKE, $CONTAINS and IS NULL operators.</sup>\\ | <sup>1. Limited to use of LIKE, $CONTAINS and IS NULL operators.</sup>\\ | ||