{"id":20485719,"url":"https://github.com/alpha74/java_sql_and_jdbc","last_synced_at":"2026-05-10T17:32:10.113Z","repository":{"id":102838483,"uuid":"205678127","full_name":"alpha74/Java_SQL_and_JDBC","owner":"alpha74","description":"A Java project to mimic variations of insert and select commands of SQL, and modify the database.","archived":false,"fork":false,"pushed_at":"2019-09-04T16:45:02.000Z","size":353,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-16T04:41:27.390Z","etag":null,"topics":["java","jdbc","mysql","sql"],"latest_commit_sha":null,"homepage":"","language":"PLpgSQL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alpha74.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-01T13:13:15.000Z","updated_at":"2020-07-27T20:04:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"3646df0c-f0b3-4baa-914b-49ca80636e37","html_url":"https://github.com/alpha74/Java_SQL_and_JDBC","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alpha74%2FJava_SQL_and_JDBC","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alpha74%2FJava_SQL_and_JDBC/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alpha74%2FJava_SQL_and_JDBC/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alpha74%2FJava_SQL_and_JDBC/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alpha74","download_url":"https://codeload.github.com/alpha74/Java_SQL_and_JDBC/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242060671,"owners_count":20065576,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","jdbc","mysql","sql"],"created_at":"2024-11-15T16:32:58.744Z","updated_at":"2026-05-10T17:32:05.079Z","avatar_url":"https://github.com/alpha74.png","language":"PLpgSQL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SQL Commands in Java\n\n- Mimic the `INSERT` and `SELECT` clauses.\n- Data is inserted/fetched from Java application commandline.\n- Read the full **Problem Statement** below.\n\n\n### Requirements:\n- MySQL database\n- JDBC connection\n- JDK package\n\n---\n\n### Problem Statement:\n\n- Write a java program which takes any of the following commands as command line argument (not as input), and executes them using JDBC:  \n  \n  1. `insert into relationname value1 value2 value3 ...`\n    - Inserts a tuple into the specified relation with the specified values; make sure you use a prepared statement.\n    - Test it with input containing single quotes.\n    - You can assume that all values are strings for simplicity  \n  \n  \n  2. `select from relationname`  \n    - Prints all tuples from the specified relation. \n    - You should assume that relationname is one of \"instructor\", \"student\" or \"takes\", and not use database metadata features to print the tuples.  \n  \n  \n  3. `select from relationname where \"condition\"`  \n  - Executes a query with the specified condition. \n  - Note the use of double quotes so that the condition comes as a single command line parameter. \n  - Again assume relationname is one of those from the previous feature. So this is really a small addition to the code for the previous feature, do NOT make a separate copy of the code.  \n  \n  \n  4. `select from relationname1 relationname2`  \n  - Displays result of natural join of the two relations. \n  - This time, use the resultset metadata feature to display all values from the query result.\n  - Display column names.\n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falpha74%2Fjava_sql_and_jdbc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falpha74%2Fjava_sql_and_jdbc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falpha74%2Fjava_sql_and_jdbc/lists"}