Cursor searchColumns = database.query("SELECT * FROM Collages"); String[] searchcolumnAry = searchColumns.getColumnNames(); System.out.println("=========== Collages table columns : start ============= " );for(int i=0;i< searchcolumnAry.length ; i++){ System.out.println("" +searchcolumnAry[i]); } System.out.println("=========== Collages table columns : end ============= " ); searchColumns = database.query("SELECT * FROM Employee"); String[] commuteSearchesAray = searchColumns.getColumnNames(); System.out.println("=========== Employee table columns : start ============= " );for(int i=0;i< commuteSearchesAray.length ; i++){ System.out.println("" +commuteSearchesAray[i]); } System.out.println("=========== Employee table columns : end ============= " ); searchColumns = database.query("SELECT * FROM Student"); String[] mapViewSearchesAray = searchColumns.getColumnNames(); System.out.println("=========== Student table columns : start ============= " );for(int i=0;i< mapViewSearchesAray.length ; i++){ System.out.println("" +mapViewSearchesAray[i]); } System.out.println("========== Student table columns : end ============= " );
Translate
Tuesday, March 10, 2020
Android Code to read database table column-names and display in logs
Subscribe to:
Post Comments (Atom)
Could not identify launch activity: Default activity not found : Error while Launching activity
Problem : I got this Error , When I tried to create an application without any Activity . Basically like to develop an Android Headless appl...
-
Audio Focus Android O – 26.0 : https://developer.android.com/guide/topics/media-apps/audio-focus.html#audio-focus-change...
-
down vote Following is the fix for AndroidStudio 3.1.2 OR Newer Versions : We have faced the same issue on AS 3.1.2 , but a simp...
-
PHP is a server side scripting language. Php is for fetching data from the datastore, perform bussiness logics, then dump the necessary htm...
No comments:
Post a Comment