Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/miomit/tsql
tiny sql intepretator
https://github.com/miomit/tsql
Last synced: 8 days ago
JSON representation
tiny sql intepretator
- Host: GitHub
- URL: https://github.com/miomit/tsql
- Owner: miomit
- License: gpl-3.0
- Created: 2024-04-13T17:26:43.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-08-16T04:45:21.000Z (3 months ago)
- Last Synced: 2024-08-16T05:45:37.284Z (3 months ago)
- Language: C++
- Size: 74.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
build
```bash
sudo chmod +x ./build./build
```exemple
```sql
CREATE TABLE User (Name CHAR(20), Age INT, Sex CHAR, Count INT);INSERT INTO User ('Yura', 21, 'M', 1000);
SELECT * FROM User;
SELECT * FROM User WHERE Count > 100 AND Count < 1000;
SELECT (Name, Count) FROM User;UPDATE User SET (Sex = 'F') WHERE Count = 5000;
UPDATE User SET (Age = Age + 10) WHERE Count > 100 AND Count < 1000;
UPDATE User SET (Age = Age - 10, Name = 'Bob', Count = 0);
WHERE Count > 100 AND Count < 1000;DELETE FROM User WHERE Count <= 500;
DELETE FROM User WHERE Count = 0 AND Sex = 'F';DROP TABLE User;
```