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
Using ROLLBACK The ROLLBACK statements end the present transaction and undo any change made during the transaction. The Rolling back is helpful for two reasons. Firstly, if yo

Consider the schema for FreeChecking Bank, that we designed given below. Translate the given ER schema into SQL CREATE TABLE statements (indicating primary key, unique and foreign

SQL Cursor   The Oracle implicitly opens a cursor to process each SQL statement not related with an explicit cursor. The PL/SQL refers to the most current implicit cursor as t

Advantages of Exceptions Using the exceptions for the error handling has many benefits. Without an exception handling, every time you issue a command, you should ensure for th

Overriding Default Locking By default, the Oracle locks the data structures for you automatically. Though, you can request exact data locks on rows or tables when it is to you

Selecting Objects: Suppose that you have run the SQL*Plus script below that creates object type Person and object table persons, and that you have settled the table: CREATE

Controlling Cursor Variables You use 3 statements to control the cursor variable: OPEN-FOR, FETCH, & CLOSE. At First, you OPEN a cursor variable FOR a multi-row query. Then, y

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

The Package Specification The package specifications contain the public declarations. The scopes of these declarations are local to your database representation and global to t

Read-Only Operator (+) - SQL The term read-only operator to the mathematical term function. Here I just need to add that the SQL standard reserves the term function for read-