SQL Commands: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
| Line 1: | Line 1: | ||
= Functions = | = Common Operations = | ||
== Functions == | |||
{| class="wikitable" | {| class="wikitable" | ||
| Line 10: | Line 12: | ||
|} | |} | ||
= Visiting = | == Visiting == | ||
Revision as of 07:36, 8 April 2025
Common Operations
Functions
| Postgres | MariaDB | SQLite | |
|---|---|---|---|
| List tables |
Visiting
| Postgres | MariaDB | SQLite | |
|---|---|---|---|
| List tables | show tables; |
SQLite 3
| TODO | Command |
|---|---|
| yyyymmdd to yyyy-mm-dd |
SELECT printf('%s-%s-%s',
SUBSTR(trading_date,1,4),
SUBSTR(trading_date,5,2),
SUBSTR(trading_date,7,2)
) FROM short_sell WHERE trading_date='20190605';
|