Question: N EEDED VERY URGENTLY, JAVA Consider a simple Book Store Information system that stores data in a table named Bockinfo in a databased named exam
NEEDED VERY URGENTLY, JAVA
Consider a simple Book Store Information system that stores data in a table named Bockinfo in a databased named exam The sql statement used to create the table is CREATE TABLE IF NOT EXISTS Bookinfo book id INT PRIMARY KEY, boak_title VARCHAR(30), book price INT: Sample data in the Backsinfo table book id book title book price 112233 Java Programming 37 112344 Accounting 24 Note that price held store whole numbers (integers) only. book titles has no spaces. The URL of the database is: jdbc:mysql://localhost/exam Username: root Password:root Write a java program that reads all the contents of the Bookinfo table and store the data in a text file named BooksInfo.txt. The data of each record should be stored in a separate line and filed should be separated by a space or a tab. Here is a sample of the file contents BooksInfo.txt 112233 JavaProgramming 37 112344 Accounting 24
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
