Question: In this assignment, you will write a java program which takes any of the following commands as command line argument (not as input), and executes

In this assignment, you will write a java program which takes any of the following commands as command line argument (not as input), and executes them using JDBC:

1.) insert into relationname value1 value2 value3 ...

Inserts a tuple into the specified relation with the specified values; test it with input containing single quotes (enclose those in double quotes so linux doesn't interpret the quotes) you can assume that all values are strings for simplicity

2.) select from relationnam

Prints all tuples from the specified relation.

3.) select from relationname where "condition

Executes a query with the specified condition. Note the use of double quotes so that the condition comes as a single command line parameter.

4.) select from relationname1 relationname Displays result of natural join of the two relations.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!