Data types in sql - character, PL-SQL Programming

Data Types in SQL - Character

CHARACTER or, synonymously, CHAR, for character strings. When this type is to be the declared type of something (e.g., a column), the permissible values are further constrained by a maximum length specification given in parentheses and optionally by the key word VARYING, indicating that values shorter than the maximum, including the empty string '' , are also permissible. Examples: CHAR(5) for strings of five characters only, CHARACTER VARYING (100), which can be abbreviated to VARCHAR(100), for strings of up to one hundred characters. The last two are alternative spellings for the same declared type.

The type CHARACTER LARGE OBJECT, or CLOB, allows for inclusion of strings that are longer than the longest supported by the other CHARACTER types. Note that in the terminology of the theory book CHARACTER is a kind of type generator. The key word does not of itself denote a type, but only does so when qualified by a length specification. A similar remark applies to some of the other type names used in SQL.

Posted Date: 1/18/2013 1:55:48 AM | Location : United States







Related Discussions:- Data types in sql - character, Assignment Help, Ask Question on Data types in sql - character, Get Answer, Expert's Help, Data types in sql - character Discussions

Write discussion on Data types in sql - character
Your posts are moderated
Related Questions
On occasion, some of Brewbean's customers mistakenly leave an item out of a basket already checked out, so they create a new basket containing the missing items. However, they requ

Role of Abstraction in pl/sql: The abstraction is a high-level description or model of a real-world entity. The Abstractions keep our daily lives convenient. They help us ca

MERGE and TRUNCATE in SQL SQL has two more table update operators, MERGE and TRUNCATE. MERGE, like INSERT, takes a source table s and uses it to update a target table t. Brief

UNION ALL - SQL Further varieties of UNION arise when we replace the key word DISTINCT by ALL in any of the foregoing examples, as in Example. ALL specifies that if row r appe

GOTO Statement The GOTO statement branches to a label unconditionally. The label must be exclusive within its scope and should precede an executable statement or a PL/SQL block.

INSERT Command in SQL Loosely speaking, INSERT takes the rows of a given source table and adds them to the specified target table, retaining all the existing rows in the targ

Primary Key - SQL A PRIMARY KEY specification carries an implicit NOT NULL constraint on each column of the specified key. When more than one key constraint is required, the k

CURRVAL and NEXTVAL The series is a schema object which generates the sequential numbers. Whenever you form a sequence, you can specify its primary value and an increment. T

Processing Transactions This part describes how to do the transaction processing. You learn the fundamental techniques that safeguard the consistency of your database, involvin

Avoiding Collection Exceptions   In many cases, if you reference a nonexistent collection element, then PL/SQL raises a predefined exception. Consider the illustration shown b