{"id":18626327,"url":"https://github.com/h1dd3nsn1p3r/db-query","last_synced_at":"2026-05-07T15:35:18.587Z","repository":{"id":58422428,"uuid":"531364023","full_name":"h1dd3nsn1p3r/db-query","owner":"h1dd3nsn1p3r","description":"👌 Useful mySql commands.","archived":false,"fork":false,"pushed_at":"2022-11-07T05:42:35.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-30T22:05:46.172Z","etag":null,"topics":["database","mariadb","mysql"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/h1dd3nsn1p3r.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-09-01T04:35:53.000Z","updated_at":"2022-09-19T07:42:08.000Z","dependencies_parsed_at":"2022-09-12T16:04:28.668Z","dependency_job_id":null,"html_url":"https://github.com/h1dd3nsn1p3r/db-query","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/h1dd3nsn1p3r/db-query","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h1dd3nsn1p3r%2Fdb-query","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h1dd3nsn1p3r%2Fdb-query/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h1dd3nsn1p3r%2Fdb-query/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h1dd3nsn1p3r%2Fdb-query/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/h1dd3nsn1p3r","download_url":"https://codeload.github.com/h1dd3nsn1p3r/db-query/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h1dd3nsn1p3r%2Fdb-query/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279005830,"owners_count":26083981,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["database","mariadb","mysql"],"created_at":"2024-11-07T04:37:43.766Z","updated_at":"2025-10-11T01:03:46.472Z","avatar_url":"https://github.com/h1dd3nsn1p3r.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"#### ✅ CREATE\n\n    CREATE TABLE `Class_C` (\n    `id` int(11) NOT NULL AUTO_INCREMENT,\n    `name` varchar(255) NOT NULL,\n    `age` int(10) NOT NULL,\n    PRIMARY KEY (`id`)\n    );\n\n\n#### ✅ INSERT\n\n    INSERT INTO `Class_C` (`name`, `age`) VALUES ('Anuj Subedi', 29);\n\n  \n#### ✅ SELECT\n\n    SELECT * FROM `Class_C`;\n    \n    SELECT * FROM `Class_C` WHERE `id` = 1;\n\n\n#### ✅ DELETE\n\n    DELETE FROM `Class_C` WHERE `id` = 1;\n    \n    DELETE FROM `Class_C` WHERE `name` = 'Anuj Subedi';\n\n\n#### ✅ UPDATE\n\n    UPDATE `Class_C` SET name='John' WHERE id=2;\n\n  \n#### ✅ ALTER\n\n    ALTER TABLE `Class_C` ADD `address` VARCHAR(255) NOT NULL AFTER `age`;\n    \n    ALTER TABLE `Class_C` DROP `address`;\n    \n    ALTER TABLE `Class_C` CHANGE `name`  `Fname` VARCHAR(255) NOT NULL;\n    \n    ALTER TABLE `Class_C` MODIFY `name` VARCHAR(255) NOT NULL;\n    \n    ALTER TABLE `Class_C` RENAME TO `Class_D`;\n\n#### ✅ DROP\n\n    DROP TABLE `Class_C`;\n    \n    DROP TABLE IF EXISTS `Class_C`;\n\n  \n#### ✅ TRUNCATE\n\n    TRUNCATE TABLE `Class_C`;\n\n\n#### ✅ IMPORT DATABASE\n\n    mysqldump -uUSERNAME -p DATABASE_NAME \u003e backup.sql\n\n\n#### ✅ EXPORT DATABASE\n\n    mysql -uUSERNAME -p DATABASE_NAME \u003c backup.sql\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh1dd3nsn1p3r%2Fdb-query","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fh1dd3nsn1p3r%2Fdb-query","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh1dd3nsn1p3r%2Fdb-query/lists"}