What are data types?

Answer Posted / s

Each column value is interpreted based on the data typed
defined for the column

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can deadlocks be resolved?

737


What kind of database is db2?

783


Can you tell me how can you find out the # of rows updated after an update statement?

870


How to connect to db2 database from windows command line?

801


What is phantom read in db2?

836


What is the maximum No of rows per page?

823


What is the difference between drop table and delete table?

804


How to rename a table in DB2 ?

827


What is release/acquire in bind?

873


How will you return the number of records in table?

713


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.

2394


Explain about dbrm.

791


Explain the contents that are a part of dclgen.

879


Comment whether dclgen is mandatorily used. If not, then what is the point of using it?

821


Mention a credible reason why select* is never given preference in an sql program that has been embedded.

943