How to find the number of rows in a db2 table?
No Answer is Posted For this Question
Be the First to Post Answer
how to fetch first 100 rows in db2
how to take the back up of the DB2 table.
If there is no row in Emp table with Ename as Raghava and you run the below queries in SPUFI. 1.select Ename from EMP wher Ename = 'raghava' 2.Select count(*) from EMP where Ename = 'raghava' What is SQLCODE shown up in SPUFI
can all users have the privilage to use the sql statement select * (dml)?
What are sqlcodes –803,-805, -811, -818,-904,-911,-913,-101, +100?
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.
Explain what a plan is?
Is ibm db2 open source?
I need to view the number of tables existing under one particular Owner. Is it possible? If so, pl give the SQL query for this?
Can we use select query in a loop to fetch multiple rows in a COBOL PROGRAM? If so, what is the advantage of cursor?
How do you eliminate duplicate values in db2?
what are the bind parameters?