Permalink
Browse files

Update sql

  • Loading branch information...
hparra committed May 21, 2017
1 parent 73a531f commit f557bf98f3068edfe94ad3f56254b3e0d58c029e
Showing with 34 additions and 0 deletions.
  1. +34 −0 sql.md
34 sql.md
@@ -25,8 +25,42 @@ sql -- language for structured databases queries
- should also use `ASC` or `DESC`
- can use an expression function
## Altering
- `TABLE`
- `RENAME`
- `ALTER`
- `COLUMN`
- `ADD`
- `RENAME`
- `DROP`
- `ALTER`
- `SET DEFAULT`
- `SET NULL`
## Updating
`UPDATE`
`SET`
`FROM`
`WHERE`
`RETURNING` (Postgres-only)
## TOOLS
### psql
- `\list`: list all databases
- `\c` connect to a database
- `\dt` list tables in current database
- `\d+` describe table
### Other
- [DB Browser for SQLite](http://sqlitebrowser.org)
## REFERENCES

0 comments on commit f557bf9

Please sign in to comment.