What are data types?

Answer Posted / sikander

In programming, classification of a particular type of
information. It is easy for humans to distinguish between
different types of data. We can usually tell at a glance
whether a number is a percentage, a time, or an amount of
money. We do this through special symbols -- %, :, and $ --
that indicate the data's type. Similarly, a computer uses
special internal codes to keep track of the different types
of data it processes.
Most programming languages require the programmer to
declare the data type of every data object, and most
database systems require the user to specify the type of
each data field. The available data types vary from one
programming language to another, and from one database
application to another, but the following usually exist in
one form or another:

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I understand Join always perform better than subqueries. Then what is the advantage/use of Subqueries/correlated subqueries etc.,in DB2 programming.Please explain.

1667


What is a dbrm in db2?

586


What is meant by dclgen?

625


SET is the ANSI standard for variable assignment, SELECT is not. SET can only assign one variable at a time, SELECT can make multiple assignments at once. If assigning from a query, SET can only assign a scalar value. If the query returns multiple values/rows then SET will raise an error. SELECT will assign one of the values to the variable and hide the fact that multiple values were returned (so you'd likely never know why something was going wrong elsewhere - have fun troubleshooting that one) When assigning from a query if there is no value returned then SET will assign NULL, where SELECT will not make the assignment at all (so the variable will not be changed from it's previous value) As far as speed differences - there are no direct differences between SET and SELECT. However SELECT's ability to make multiple assignments in one shot does give it a slight speed advantage over SET.

2164


What are types of indexes?

605






Comment whether the cursor is closed during commit or not.

686


If I have a view which is a join of two or more tables, can this view be updateable?

708


How can you find out the # of rows updated after an update statement?

653


What is access path in db2?

572


Is db2 relational database?

580


What is precompiler in db2?

601


What is a db2 schema?

772


How to check table size in db2 sap?

594


How can you quickly find out the # of rows updated after an update statement?

642


What is dbrm library?

587