Getting column count of the MySQL output with Java -



Getting column count of the MySQL output with Java -

i want know how column count of resulting output in mysql.

i searched site same question i'm little different.

i want column count of resulting output not of table.

i want know how many columns there in resulting output when query passed.

thanxx in advance!

resultsetmetadata metadata = resultset.getmetadata(); int columncount = metadata.getcolumncount();

java mysql jdbc connectivity

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -