{"id":22821907,"url":"https://github.com/z-bj/sql_reference","last_synced_at":"2026-05-01T14:34:06.072Z","repository":{"id":65658056,"uuid":"596723448","full_name":"z-bj/sql_reference","owner":"z-bj","description":"Object containing commonly used SQL commands.","archived":false,"fork":false,"pushed_at":"2023-02-17T06:13:30.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T23:41:14.299Z","etag":null,"topics":["json","post-it","sql"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/z-bj.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":"2023-02-02T19:52:42.000Z","updated_at":"2023-03-04T03:25:06.000Z","dependencies_parsed_at":"2023-02-18T00:01:47.815Z","dependency_job_id":null,"html_url":"https://github.com/z-bj/sql_reference","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/z-bj/sql_reference","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z-bj%2Fsql_reference","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z-bj%2Fsql_reference/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z-bj%2Fsql_reference/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z-bj%2Fsql_reference/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/z-bj","download_url":"https://codeload.github.com/z-bj/sql_reference/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z-bj%2Fsql_reference/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32501403,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["json","post-it","sql"],"created_at":"2024-12-12T16:09:44.430Z","updated_at":"2026-05-01T14:34:06.049Z","avatar_url":"https://github.com/z-bj.png","language":"Shell","readme":"# SQL Reference\r\n\r\n``` json\r\n{\r\n    \"database\": {\r\n        \"create\": \"CREATE DATABASE database_name;\",\r\n        \"drop\": \"DROP DATABASE database_name;\",\r\n        \"rename\": \"ALTER DATABASE database_name RENAME TO new_name;\"\r\n    },\r\n    \"table\": {\r\n        \"create\": \"CREATE TABLE table_name();\",\r\n        \"drop\": \"DROP TABLE table_name;\",\r\n        \"rename\": \"ALTER TABLE table_name RENAME TO new_name;\"\r\n    },\r\n    \"row\": {\r\n        \"insert\": \"INSERT INTO table_name(columns) VALUES(values);\",\r\n        \"update\": \"UPDATE table_name SET column_name = new_value WHERE condition;\",\r\n        \"delete\": \"DELETE FROM table_name WHERE condition;\"\r\n    },\r\n    \"column\": {\r\n        \"add\": \"ALTER TABLE table_name ADD COLUMN column_name;\",\r\n        \"drop\": \"ALTER TABLE table_name DROP COLUMN column_name;\",\r\n        \"rename\": \"ALTER TABLE table_name RENAME COLUMN column_name TO new_name;\",\r\n        \"primary_key\": \"ALTER TABLE table_name ADD PRIMARY KEY(column_name);\",\r\n        \"foreign_key\": \"ALTER TABLE table_name ADD FOREIGN KEY(column_name) REFERENCES table_name(column_name);\"\r\n    }\r\n}\r\n\r\n```\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fz-bj%2Fsql_reference","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fz-bj%2Fsql_reference","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fz-bj%2Fsql_reference/lists"}