how will u find statistics of a database objects?
Answers were Sorted based on User's Feedback
Answer / ramesh kotha
exex dbms_stats.gather_table_statistics
('<schema>','<tablename>');
Is This Answer Correct ? | 1 Yes | 0 No |
What is numeric function sql?
what is the difference between a local and a global temporary table? : Sql dba
What is pl/sql and what is it used for?
How do I truncate a word?
Can dml statements be used in pl/sql?
What does closing a cursor do?
How to retrieve Duplicate Rows only in a Table? Suppose if a Table Name is "Education". It consists of multiple columns. Then if we insert rows into this table with duplicate records then how can we retrieve only duplicate records from that table?
28 Answers Alps, Aricent, Bank Of America, Wipro,
What is a temporal table?
Write a query to find the employees from EMP table those who have joined in Monday. (there is a column as hiredate which is a date column i.e values are like 03-DEC-81)
Give an example of Full Outer Join?
How do I write a sql query in pgadmin 4?
Hi Guys, I have a situation where I need to access the column values from rowtype variable. However, the column names are dynamic. below is sample code: declare Cursor c1 is select * from emp; Cursor c2 is select column_name from xyztable; v_c2 c2%rowtype; v_str varchar2 v_value varchar2(200); begin for rec in c1 loop open c2;---this cursor has column names like EMPLOYEE_ID, FIRST_NAME, LAST_NAME etc. loop fetch c2 into v_c2; exit when c2%notfound; /* now lets say i want to access value of LAST_NAME from cursor c1, so I am writing below code, however it does not work as expected */ v_str:= 'rec.'|| v_c2.column_name; -- this will give me string like "rec.EMPLOYEE_ID" v_value:=v_str; end loop; end loop; end; / Plz help ASAP.Thanks.