{"id":19457326,"url":"https://github.com/shiru99/cs313-dbms","last_synced_at":"2026-06-06T23:32:50.496Z","repository":{"id":85908419,"uuid":"376750246","full_name":"Shiru99/CS313-DBMS","owner":"Shiru99","description":"Database Management System Lab Course (CS 313), IIT Dharwad","archived":false,"fork":false,"pushed_at":"2021-07-04T04:15:03.000Z","size":28503,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-08T01:46:52.230Z","etag":null,"topics":["dbms","j2ee","jdbc","postgresql"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/Shiru99.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":"2021-06-14T08:10:40.000Z","updated_at":"2024-09-15T12:59:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"b07dacb8-3da4-4ab9-a3ad-2b94e22d2799","html_url":"https://github.com/Shiru99/CS313-DBMS","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/Shiru99%2FCS313-DBMS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shiru99%2FCS313-DBMS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shiru99%2FCS313-DBMS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shiru99%2FCS313-DBMS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Shiru99","download_url":"https://codeload.github.com/Shiru99/CS313-DBMS/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240654183,"owners_count":19835857,"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":["dbms","j2ee","jdbc","postgresql"],"created_at":"2024-11-10T17:21:07.357Z","updated_at":"2025-02-25T10:53:48.379Z","avatar_url":"https://github.com/Shiru99.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CS313 - DBMS Labs\n\n\n\n## Installation \n\n\n**How to Postgresql on Ubuntu**\n\n\n***Postgresql Installation***\n```\n$ sudo apt-get update\n \n$ sudo apt install postgresql postgresql-contrib\n```\n---\n\n\n***Use Default User-psql***\n```\n$ sudo -u postgres psql postgres\n```\n---\n\n\n***Use New User***\n\n```\n$ sudo -u postgres psql postgres\n\npostgres=# CREATE ROLE universitydb0015 WITH PASSWORD '123';\n\npostgres=# ALTER ROLE  \"universitydb0015\" WITH LOGIN;\n\n\n// for existing university db\n\n$ psql -U universitydb0015 -h localhost -p 5432 -d university;\n\n(Add tables through sql file)\n\nuniversity=\u003e \\i /home/\"username\"/Downloads/DDL.sql\n```\n---\n\n\n# Postgresql \n\n\n***list of databases***\n\n```\nuniversity=\u003e \\l\n```\n\n***create database***\n\n```\nuniversity=\u003e CREATE DATABASE dbname;\n```\n\n***drop databases***\n\n```\nuniversity=\u003e DROP DATABASE dbname;\n```\n\n\n***to connect databases***\n\n```\nuniversity=\u003e \\c university;\n```\n---\n\n***list of tables***\n\n```\nuniversity=\u003e \\dt\n```\n***create table***\n\n```\nuniversity=\u003e CREATE TABLE table_name(\n   ID INT PRIMARY KEY     NOT NULL,\n   NAME           TEXT    NOT NULL,\n   AGE            INT     NOT NULL,\n   ADDRESS        CHAR(50),\n   SALARY         REAL\n);\n```\n\n***drop table***\n\n```\nuniversity=\u003e DROP TABLE table_name;\n```\n\n***info related table***\n\n```\nuniversity=\u003e \\d student;\n\nOR \n\nuniversity=\u003e SELECT \n   table_name, \n   column_name, \n   data_type \nFROM \n   information_schema.columns\nWHERE \n   table_name = 'student';\n\n```\n---\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshiru99%2Fcs313-dbms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshiru99%2Fcs313-dbms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshiru99%2Fcs313-dbms/lists"}