How to get the column count and column name from the
resultset in the database connection program?
Answers were Sorted based on User's Feedback
Answer / punit
in ur mysql database there is 1 database with name
information_schema,
so 1st type,
use information_schema;
inthis data base there is 1 table COLUMNS which contain all
the info related to allthe tables in ur mysql,
so hit the following queri for youe column count:-
select count(*) from COLUMNS where TABLE_NAME='Table name';
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / sreeprasad
you use following sql query
select column name, count(column name)from table name.
| Is This Answer Correct ? | 4 Yes | 6 No |
Answer / uday kumar_anem
Hello friends, just observe the question.
It is not Datatable, it is database connection program.
Say i user "select * from table"
Here i dont know how many col r there in my table.
So give the answer to find the number of columns in that
table.
| Is This Answer Correct ? | 0 Yes | 2 No |
Answer / akshara
in the vb script we use genralluy to count the rows as
rowcount=datatabble.GetSheet("Sheet name").GetRowCount
MsgBox(rowcount)
i fyou need sheet count
datatable.getcheetcount
Thank you
| Is This Answer Correct ? | 0 Yes | 5 No |
Answer / prasad
Select column_name, count(column_name) from user_tab_columns
where table_name='EMP' group by rollup(column_name);
| Is This Answer Correct ? | 0 Yes | 5 No |
how do we know whether all objects are stored in the object repository or not? how can we know if a particular object is not stored in the repository?
what is descriptive.create()in qtp?
HOW DO U CALL A ACTION IN QTP?
Tell about descriptive programing in qtp8.2?
How to create log file in qtp?
in QTP we test web based application at that time what script is run? is support vb script? plz tell me
For ex we are doing automate testing in that can we do some part of application recording, some part descriptive programing and some part general VB scripting like that .............
What is a Run-Time Data Table? Where can I find and view this table?
Can you expect major bugs in Net banking Application?
How to Synchronize the Browser at Field level? For example if you put Browser.sync(), its waiting upto for that Browser sync only. It should wait total Browser get upload with fields.
actually how many hours per one day we will work on automation(qtp) in real time
How can I import environment from a file on disk?